13.設(shè)有定義“#define F(N)2*N”,則表達(dá)式F(2+3)的值是【13】。
【參考答案】
【13】 7
14.若在程序中用到“putchar()”函數(shù)時(shí),應(yīng)在程序開頭寫上包含命令【14】,若在程序中用到″strlen()″函數(shù)時(shí),應(yīng)在程序開頭寫上包含命令【15】。
【參考答案】
【14】 #include <stdio.h> 【15】 #include <string.h>
15.閱讀下面程序段,則執(zhí)行后的輸出結(jié)果為【16】。
#include ″stdio.h″
main()
{ int a=1;
for(;a< =15;)
if( ++a%5! =2)continue;
else printf(″%d″,a);
printf(″\n″);}
【參考答案】
【16】 2712
16.閱讀以下程序,使程序輸出結(jié)果為30,4.000000,請(qǐng)?zhí)羁铡?/P>
#include ″stdio.h″
main()
{ int a=30,b=40,c;
double【17】,s;
s=fun(&a,&b,&c);
printf(″%d,%lf\n″,c,s);}
double fun(int * a,int * b,【18】)
{ *c=*a% *b;
return(4.0);}
【參考答案】
【17】 fun(int *,int *,int *) 【18】 int *c
相關(guān)推薦:
2009年9月計(jì)算機(jī)等級(jí)考試二級(jí)C語言模擬試題(1) 2009年9月計(jì)算機(jī)等級(jí)考試二級(jí)C語言模擬試題(2)