int main(void){ printf("global_1 = %d\nglobal_2 = %d\n\n", global_1, global_2); functionA(); printf("global_1 = %d\nglobal_2 = %d\n\n", global_1, global_2); functionB(); printf("global_1 = %d\nglobal_2 = %d\n\n", global_1, global_2); return 0; }
int main(int argc, char ** argv, char ** envp) { char b; short c; int a; double d; a = functionA(1, 2, 19); printf("A=%d\n", a); b = functionB(97, 98, 99, 33, 32); printf("B=%08X\n", b); scanf("%hu", &c); c = functionC(c, 255); printf("C=%04X\n", c); d = functionD(66741862, 67344793, 10); printf("D=%lf\n", d); }
int main(void){ int p = 2; functionA(); functionB(); printf("p in main: %d\n", p); }
int test(void) { functionB(); return 0; }