计算机二级C语言程序设计
免费题库
有以下程序:#include #define N 3void fun(int a[][N],int b[]){ int i,j;for(i=0;i
有以下程序main(int argc,char *argv[]){int n=0,i;for(i=1;i
若有以下函数首部int fun(double x[10], int *n)则下面针对此函数的函数声明语句中正确的是______。
有下列程序#include int f(int x){ int y;if(x==1||x==2)return 1;else{ y=x*f(x-1)+(x-1)*f(x-2);return y;}}main(){ int z;z=f(4);printf("%d",z);}执行后的输出结果是______。
有以下程序 #include int fun( int n ) { int a; if( n==1 ) return 1; a = n + fun( n-1 ); return ( a ); } main() { printf( "%d\n", fun( 5 ) ); }程序的输出结果是______。
有以下定义:int a;long b;double x,y;则以下选项中正确的表达式是______。
有以下程序#include main(){ char c1,c2;c1=''A''+''8''-''4'';c2=''A''+''8''-''5'';printf("%c,%d\n",c1,c2);}已知字母A的ASCII码为65,程序运行后的输出结果是______。
有以下程序#include main(){ int a=0, b=0;for( ;a
若有定义:int a=3,b;,则执行语句:b=(a++,a++,a++);后,变量a和b的值分别是______。
以下选项中合法的实型常量是______。
«
1
2
...
5
6
7
8
9
10
11
...
42
43
»