推 ojos:我的期中考也是打中文叫人翻的 61.57.185.253 11/16
1.請預測下列程式執行後,x的數值大小:
(1) inta=2,x=0;
while(a<20)︴a*=2; ++x; ︴
(2) int x=1,y;
if9=1,y<10,y+=2) x++;
(3) int a=6,b=10;
for (a<5||b>5) x=1;
^^^^ 那是什麼鬼符號??
else if ((a+b)>10) x=2;
else x=3
2.請比較auto,static與extern變數宣告方式的差異
--
把答案交出來!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.139.210.179