单选题在C语言中,只有在使用时才占用内存单元的变量,其存储类型是______。
单选题下列程序运行后的输出结果是 main( ) char arr[2][4]; strepy(arr,"you");strepy(arr[1],"me"); arr[0][3]='&'; printf("%s/n", arr): A) you&me B) you C) me D) err
单选题当变量13的值不为2、4、6时,值为“真”的表达式是( )。
单选题设fp已定义,执行语句“fp=fopen("file", "w");”后,以下针对文本文件file操作叙述的选项中正确的是______。
单选题下面的程序在编译时产生错误,其出错原因是( )。
#inc1ude
main()
{int 1_case; float printF;
printf("请输入2个数:");
scanf("%d %f", &1_case, &printF);
printf("%d %f/n",1_case, printF);
}
单选题有以下程序
#include<stdio.h>
main()
{int x=1,y=0,a=0,b=0;
switch(x)
{case 1:
switch(y)
{case 0: a++;break;
case 1: b++;break;
}
case 2:a++;b++;break;
case 3:a++;b++;
}
printf("a=%d,b=%d/n",a,b);
}
程序的运行结果是______。
单选题有以下程序
#include<stdio.h>
main()
{int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=1;
for(i=0;i<3;i++)
for(j=i;j<=i;j++)t+=b[i][b[j][i]];
printf("%d/n",t);
}
程序运行后的输出结果是______。
单选题构成计算机软件的是
单选题若主函数中有定义语句:int a[10],b[10],c;,在主函数前定义的fun函数首部为:void fun(int x[]),则以下选项中错误的调用语句是( )。
单选题在数据处理中,其处理的最小单位是( )。
单选题有以下程序 main() int a=1,b=2,m=0,n=0,k; k=(n=b>
单选题有如下程序段 int*p,a=10,b=3; p=&a; a=*p+b;执行该程序段后,a的值为______。
单选题有以下程序: #include<stdio.h> int f(int t[],int n); main() { int a[4]={1,2,3,4},s; s=f(a,2);printf(''%d\n'',s);} int f(int t[],int n) { if((n>0)&&(n<5))return t[n+1]+f(t,n-1); else return 0;} 程序运行后的输出结果是( )。
单选题有以下程序:
#include <stdio.h>
#include <stdlib.h>
main()
{ int *a, *b, *c;
a=b=c(int *)malloc(sizeof(int));
*a=1; *b=2, *c=3;
a=b;
printf(%d, %d, %d\n, *a, *b, *c);
}
程序运行后的输出结果是______。
单选题以下合法的字符型常量是
单选题下列描述中正确的是
单选题下列定义数组的语句中,正确的是
单选题以下程序运行后的输出结果是 #include <stdio.h> int fun(int(*s)[4],int n,int k) int m,i; m=s[0][k]; for(i=1;i<n;i++) if(s[i][k]>m)m=s[i][k]; return m; main( ) int a[4][4]=1,2,3,4,11,12,13,14,21,22,23,24,31,32,33,34 ; prinff("%d/n",fun(a,4,0)); A) 4 B) 34 C) 31 D) 32
单选题若有定义语句:int year=2009,*p=&year;,以下不能使变量year中的值增至2010的语句是( )。
单选题设有两个串p和q,求q在p中首次出现位置的运算称作______。