pointex9.c
来自「C源码集」· C语言 代码 · 共 38 行
C
38 行
#include <stdio.h>int main (){ int i = 2, j = 3, k; int *p = &i, *q = &j; int **r; r = &p; // r becomes address of p printf("**r = %i\n", **r); // prints the contents of the thing pointed to by r, ie i which is 2 k = *p**q; // k = what p points to times what q points to, ie 2 x 3 printf("k = %i\n", k); //6 *p = *q; // contents of p = contents of q, i = j = 3 printf("**r = %i\n", **r); // prints the contents of the thing pointed to by r, ie i which is 3 k = **r**q; //i x j = 3 x 3 printf("k = %i\n", k); //9 k = *p/ *q; printf("k = %i\n", k); //1 return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?