正在加载图片...
Scope of variable include <stdio. h> int sa (int x)i int main fint xi 25 printf(" The address of x in main is d\n",&x)i x= sq(x)i printf("gd\n", x) return 0 int sq(int a) printf(" The address of a in sq is d \n", &a) printf(" what is x d\n", x)i a=aai return ai 港城市大 PROGRAMMING METHDOLOGY AND SOFTWAREENGINEERING Copyrighto1998 Angus Wu ol Hone KonePROGRAMMING METHDOLOGY AND SOFTWARE ENGINEERING Copyright©1998 Angus Wu Scope of Variable #include <stdio.h> int sq(int x); int main() {int x; x= 25; printf(" The address of x in main is %d\n", &x); x= sq(x); printf("%d\n", x); return 0; } int sq(int a) { printf(" The address of a in sq is %d\n", &a); printf(" what is x %d\n", x); a=a*a; return a; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有