计算机二级C语言程序设计
免费题库
以下各选项企图说明一种新的类型名,其中正确的是______。
以下选项中可作为C语言合法整数的是______。
下面程序的输出是______。main(){ int t=1;fun(fun(t));}fun(int h){ static int a[3]={1,2,3};int k;for (k=0;k
以下程序段的输出结果是:______。char s[]="\\141\141abc\t";printf("%d\n",strlen(s));
有下列程序#include void f(int a[],int n,int flag){ int t,i,j,k;for(i=0;i
有下列程序#include #define N 4int fun(int a[][N]){ int i, y=0;for(i=0; i
有以下程序main(){ char s[]="Yes\n/No",*ps=s;puts(ps+4);*(ps+4)=0;puts(s);}程序运行后的输出结果是______。
有如下程序#include main(){char a = ''3'', b = ''A'';int i;for (i=0; i
有以下程序 #include #define N 2 #define M N+1 #define NUM (M+1) * M/2 main() { printf("%d\n",NUM ); }程序运行后的输出结果是______。
有以下程序int f(int a){ return a%2; }main(){ int s[8]={1,3,5,2,4,6},i,d=0;for (i=0;f(s[i]);i++) d+=s[i];printf("%d\n",d);}程序运行后的输出结果是______。
«
1
2
...
17
18
19
20
21
22
23
...
42
43
»