阿摩線上測驗 登入

申論題資訊

試卷:95年 - 95 關務特種考試_四等_資訊處理:程式語言概要#34397
科目:程式語言
年份:95年
排序:0

申論題內容

一、寫出下面 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(); }