单选题若有定义语句:
char s[10]="1234567/0/0";
则strlen(s)的值是______。
单选题以下程序的输出结果是( )。 #include <stdio.h> main() { int a=21,b=11; printf("%d/n",--a+b,--b+a); }
单选题算法具有五个特性,以下选项中不属于算法特性的是______。 A) 有穷性 B) 简洁性 C) 可行性 D) 确定性
单选题有以下程序 void fun2(char a,char b) main() {printf("%c%c",a,b);} { fun1(); char a='A',b='B'; printf("%c%c",a,b); void fun1() fun2('E','F');} {a='C';b='D';} 程序的运行结果是
单选题有以下程序: main() { unsigned char/a, b,
c; a=0x3; b=a |0x8; c=b
<<1; printf("%d%d/n", b, c); }
程序运行后的输出结果是______。
A.-11 12
B.-6 -13
C.12 24
D.11 22
单选题能正确表示逻辑关系“a)10或a≤0”的C语言表达式是( )。 A) a> =10 or a<=0 B) a> =0|a<=10 C) a>=10&&a<=0 D) a>=10||a<=0
单选题有以下程序
#include <stdio.h>
main()
{ int i,s=0,t[]={1,2,3,4,5,6,7,8,9};
for(i=0;i<9;i+=2) s+=*(t+i);
printf("%d/n",s);
}
程序执行后的输出结果是______。
单选题以下叙述中正确的是
单选题以下含有宏定义的程序中,数组a的大小是______。
#include<stdio.h>
#define N 10
int main()
{
int a[N], i;
for(i=0; i<N; i++)
a[i]=i+2;
for(i=0; i<N; i++)
printf("%4d", a[i]);
return 0;
}
单选题已知字母A的ASCII码值是65,字母a的ASCII码值是97,以下程序______。main() char a='A'; int b=20; printf(%d,%0",(a=a+a,a+b,B) ,a+'a'-'A',B) ; A) 表达式非法,输出零或不确定值 B) 因输出项过多,无输出或输出不确定值 C) 输出结果为20,141 D) 输出结果为20,141,20
单选题有以下程序 #include main(){int a=7; while(a--); printf("%d\n",a);} 程序运行后的输出结果是
单选题下列选项中,不会出现无限循环的是( )。
单选题C语言主要是借助以下哪种手段来实现程序模块化的?______。
单选题以下所列对结构类型变量tdl的声明中错误的是______。
单选题设有定义:
int a=1, b=2, c=3;
以下语句中执行效果与其它三个不同的是______。
单选题以下选项中,能用作用户标识符的是______。
单选题有以下程序:
#include<stdio.h>
main()
{
int x=8;
for(;x>0;x--)
{
if(x%3)
{
printf("%d,",x--);
contmue;
}
printf("%d,",-x);
}
}
程序运行后的输出结果是______。
单选题有如下程序:
#include <stdio.h>
main()
{
char ch="M";
while(ch !="K")
{
ch--;
putchar(ch);
}
printf("\n");
}
程序运行后的输出结果是______。
单选题有以下程序 #include<stdio.h> int fun(int a,int b) {if(b==0) return a; else return(fun(--a,--b)); } main() {printf(''%dkn'',fun(4,2));} 程序的运行结果是( )。
单选题以下选项中,当x为大于1的奇数时,值为0的表达式是 A) x%2==1 B) x/2 C) x%21=0 D) x%2==0