单项选择题
下面程序
main()
int x=100, a=10, b=20, ok1=5, ok2=0;
if(a<b)
if(b!=15)
if(!ok1) x=1;
else if(ok2)x=10;
x=1;
printf("%d\n",x);
的输出是______。
A.-1
B.0
C.1
D.不确定的值
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序运行后,输出结果为______。 main() int a[2][3]=1,3,5,7,9,11,*s[2],**pp,*p; s[0]=a[0],s[1]=a[1]; pp=s; p=(int*)malloc(sizeof(int)); **pp=s[1][1]; p=*pp; printf( %d n ,*p);
A.1
B.7
C.9
D.11
点击查看答案&解析
单项选择题
以下程序的输出结果是______。 #include<stdio.h> #include<siring.h> fun(char *w,int n) char t,*s1,*s2; s1=w;s2=w+n-1; while(s1<s2) t=*s1++; *s1=*s2-; *s2=t; main() char *p; p= 1234567 ; fun(p,strlen(p)); puts(p);
A.1234567
B.7654321
C.1711717
D.7177171
点击查看答案&解析
相关试题
下述函数用于统计一行字符中的单词个数,单...
有以下定义和语句,则sizeof(a)的值是 ...
下列程序的输出结果是 【11】 。 int...
下面程序的输出结果是 【12】 。 char...
有一个已排好序的数组,今输入一个数,要求...