以下程序的输出结果是 #include<iostream.h> int f( ) { static int i=0; int s=1 s+ =i; i++; return s;} void main( ) { int i,a=0; for(i=0 ;i<5;i++)a+=f( ); cout < < a;}
A.
20
B.
24
C.
25
D.
15
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】用所给动词的适当形式填空。 1. They _________ (be) to Shanghai twice. 2. ____ your uncle ______ (visit)Beijing before? 3. — Where is your father? — He _______(go) to Jinan. He _____ (come) back in amonth. 4. I enj...
【简答题】Mr . Smith teaches English in a high school He has two daughters . They aye twin( 双胞胎 )sisters . Mr . Smith calls them Lily and Lucy . Jim and Alex are Mr . Smith’s students . They often go to see the...
【简答题】阅读理解。 Channel Islands tourist guide Friendly communities, a rough coastline and gentle, untouched scenery make the islands ideal for anyone who wants to ‘get out there’ and explore on foot or by bike....