19.下面程序运行时输出结果是()。
#include
int f1( )
{static int i=0, f=1;
return f*=++i;
}
int f2( )
{int i=0, f=1;
return f*=++i;
}
int main( )
{ printf("%2d ", f1( )+f1( ));
printf("%2d\n", f2( )+f2( ));
return 0;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f5-a528-c003-bc7499099f00.html
点击查看答案
15.已有定义“char ch='b';”,则表达式ch=ch-'a'+'A'的值为字符________的编码。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-2900-c003-bc7499099f02.html
点击查看答案
37.以下关于函数形式参数的声明中正确的是________。
A. int a[ ]
B. int a[ ][ ]
C. int a[ ]={0}
D. int a[2][ ]
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f5-33e0-c003-bc7499099f00.html
点击查看答案
38.下列选项中可用作变量名的是( )。
A. Case
B. a-b
C. $cd
D. 2ab
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-9660-c003-bc7499099f01.html
点击查看答案
3.下面程序运行后输出的结果是________。
#include
int main()
{ int i;
for( )
printf( ) ;
return 0;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f1-c110-c003-bc7499099f00.html
点击查看答案
1
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f6-8ba0-c003-bc7499099f01.html
点击查看答案
20.下面程序运行时输出的结果是()。
#include
int main( )
{ int n=0, i;
for(i=0; i<3; i++)
switch( )
{ case 0:
case 1:
case 2:
case 3: printf("%2d ", n++);
}
return 0;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f1-f7c0-c003-bc7499099f00.html
点击查看答案
8.判断字符变量c是英文字母的表达式是________。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f0-55c8-c003-bc7499099f01.html
点击查看答案
5.下面程序运行后输出的结果是________。
#include
int main()
{ int n=5;
do
{ switch(n%2)
{ case 0: n--; break;
case 1: n--; continue;
}
n--;
printf("%2d", n);
}while(n>0);
return 0;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f1-c8e0-c003-bc7499099f00.html
点击查看答案
5.在C程序中,若对函数类型未加说明,则函数的隐含类型为________。
A. int
B. double
C. void
D. char
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f4-ed90-c003-bc7499099f01.html
点击查看答案