正在加载图片...
局部变量和全局变量 #include <stdio. h> ●# include< stdlib. h> ● int test l=0 void fIo printi("在函数中变量test的值为:%dn", testl) pitf("在f函数中变量test的地址为:%dn"&test1) printf("n") int test2=1oo ● void f20局部变量和全局变量 #include <stdio.h> #include <stdlib.h> int test1=0; void f1() { printf("在f1函数中变量 test1的值为: %d\n",test1); printf("在f1函数中变量 test1的地址为: %d\n",&test1); printf("\n"); } int test2=100; void f2() {
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有