# include <stdio.h>
int main()
{ int a[3], *p;
a[0] = 10; a[1] = 20; a[2] = 30;
p=a;
printf("%d\n", *(p++));
printf("%d\n", *(++p));
printtf("%d\n", ++(*p));
return 0;
1 回答
木柘
TA贡献143条经验 获得超94个赞
#include <stdio.h> int main() { int a[3] = {10,20,30}, *p = a; printf("%d\n", *(p++));//*(p++) <=> *p printf("%d\n", *(++p));//此时p指向a[1],*(++p) <=> a[2] printf("%d\n", ++(*p)); return 0; }
- 1 回答
- 0 关注
- 980 浏览
添加回答
举报
0/150
提交
取消