摘要:
union [union tag] { member definition; member definition; ... member definition; } [one or more union variables]; union Data { int i; float f; char str[20]; } data; #include... 阅读全文
摘要:
#include int max(int x, int y) { return x > y ? x : y; } int main(void) { /* p 是函数指针 */ int (* p)(int, int) = & max; // &可以省略 int a, b, c, d; printf("请输入三个数字:"); scanf(... 阅读全文
摘要:
#include int main () { int var1; char var2[10]; printf("var1 变量的地址: %p\n", &var1 ); printf("var2 变量的地址: %p\n", &var2 ); return 0; } #include int main () { int var = ... 阅读全文