📄 pointex9.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -