摘要: #include <stdio.h> fun(char x) { char y; y=x-4; return y; } main() { printf("%d",sizeof(fun(97))); printf("\n%d",fun(97)); getchar(); } 阅读全文
posted @ 2022-09-28 20:51 myrj 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> void f(int n); void g(int n) { f(n); } main() { void f(int n); f(5); getchar(); } void f(int n) { printf("%d",n); } 如果第二行的函数声明放在g函数 阅读全文
posted @ 2022-09-28 20:42 myrj 阅读(74) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //数组与指针 main() { int x[8]={8,7,6,5,0,0},*s; s=x+3; printf("%d %d %d %d %d %d",s[0],s[1],s[2],s[3],s[4],s[5]); getchar(); } 阅读全文
posted @ 2022-09-28 16:05 myrj 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int d=1; fun(int q) { int d=5; d+=q++; printf("%d ",d); } main() { int a=3; fun(a); d+=a++; printf("%d\n",d); getchar(); } 阅读全文
posted @ 2022-09-28 10:24 myrj 阅读(35) 评论(0) 推荐(0) 编辑