單項選擇題

程序輸出結果為( )。 #include <stdio.h> int x=0; //x定義在所有函數(shù)之外,為全局變量 void proc (); int main ( ) { x=1; proc( ); printf("%d/n",x); } void proc ( ) { x=2; }
A、2
B、0
C、1
D、程序錯誤

A.h>
微信掃碼免費搜題