正在加载图片...
清华大学出版社 TSINGHUA UNIVERSITY PRESS 102指向变量的指针变量 2.指针运算符 2)取内容运算符* 【例102】变量地址赋指针变量。 include<stdio h> 188.18 void maino 189,1 i int a, b Press any key to continue int *pointer_1, *pointer_2 a=100;b=10 pointer 1=&a; pointer 2=&b: printf(%d, %dIn", a, b) printf("%d, %dn",*pointer_1*pointer_ 2) 返回本章首页6 返回本章首页 10.2 指向变量的指针变量 2. 指针运算符 2)取内容运算符* 【例10_2】变量地址赋指针变量。 #include<stdio.h> void main() { int a,b; int *pointer_1, *pointer_2; a=100;b=10; pointer_1=&a; pointer_2=&b; printf("%d,%d\n",a,b); printf("%d,%d\n",*pointer_1, *pointer_2); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有