申論題內容
一、寫出下面 C 程式的執行結果。(執行結果共有五列輸出,請標明每列輸出的列號與
內容)(20 分)
#include
int x=5;
void f(int x) { printf(“%d
”,x++); }
void g(void) { static int x = 0; printf(“%d
”,x++); }
void main() {
printf(“%d
”,++x);
{ int x = 4; printf(“%d
”,x++); }
g();
f(x);
g();
}