单选题以下程序的输出结果是______。 main() int a[3][3]=1,2,3,4,5,6,i,j,s=0; for(i=0;i<3;i++) for(j=0;j<=i;j++) s+=a[i][j]; printf("%d/n",s);
单选题当输入为“quert?”时,下面程序的执行结果是 ( ) #indude<stdio.h> main() {char c; c=getehar(); while((c=getchar())!='?')putchar(++c) ; }
单选题关于C语言中的typedef的叙述不正确的是( )。
单选题在C语言中,只有在使用时才占用内存单元的变量,其存储类型是( )。
单选题下列叙述中正确的是
单选题有以下程序
#include
void main()
{char b,c;int i;
b='a';c='A';
for(i=0:i<6.i++)
{ if(i%2)putchar(i+b);
else putchar(i+c);
}
printf("\n");
}
程序运行后的输出结果是
单选题若输入“abcdef”“abdef”,下述程序的输出结果为( )。 # include<stdio.h> # include<string.h> main() int n; char s1[20] ,s2[20],*p1,*p2; scanf("%s" ,s1); scanf("%s" ,s2); p1=s1; p2=s2; n=strcmp(p1,p2); printf(”%d/n" ,n);
单选题下列叙述中正确的是( )。
单选题在C语言中,不正确的int类型的常数是______。 A.32768 B.0. C.037 D.0xAF
单选题有以下程序:
# include<stdio.h>
main()
{ int a=1,b=0;
printf("%d,",b=a+b);
printf("%d/n",a=2+b);
}
程序运行后的输出结果是______。
单选题若有定义“int a=5, b=7;”,则表达式a%=(b%2)运算后,a的值为______。
单选题若有如下程序: main() int a=1,b=1; for(;a<=10;a++) if(b>=9) break; if(b%3==1) b+=3;continue; b++; printf("%d,%d",b,
单选题对下述程序的判断中,正确的是( )。 #include<stdio.h> void main() {char *P,s[256]; p=s; while(strcmp(s,"the end")) {printf("Input the string:"); gets(s); while(*P) putchar(*p++);}}
单选题有以下程序: #include<stdio.h> main() int i=1,j=1,k=2; if((j++||k++)&&i++) printf("%d,%d,%d/n",i,j,k); 执行后输出结果是( )。 A) 1,1,2 B) 2,2,1 C) 2,2,2 D) 2,2,3
单选题以下选项中,不合法的C语言用户标识符是( )。
单选题下列语句中,正确的是______。 A. static char str[]="China"; B. static char str[];str="China"; C. static char str1[5],str2[]="China";strl=str2; D. static char str1[],str2[];str2="China";strcpy(str1,str2);
单选题利用fseek函数可实现的操作是
____
。
单选题有以下函数定义; void fun(int n,double x)...... 若以下选项中的变量都已正确定义并赋值,则对函数fun正确调用语句是______。
单选题有以下程序:
#include<stdio.h>
main()
{
int i, j;
for(i=1; i<4; i++)
{
for(j=i; j<4; j++)printf("%d*%d=%d", i, j, i*j);
printf("/n");
}
}
程序运行后的输出结果是______。
单选题已知小写字母a的ASCII码为97,大写字母A的ASCII码为65,以下程序的结果是______。 main() unsigned int a=32,b=66; printf("%c/n", b|b);