![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
以下程序运行后的输出结果是【 】。 include <stdio.h> main() { int a=1,b=3,c=5;
以下程序运行后的输出结果是【 】。 include <stdio.h> main() { int a=1,b=3,c=5; if (c=a+b) printf("yes\n"); else printf("no\n"); }
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
以下程序运行后的输出结果是【 】。 include <stdio.h> main() { int a=1,b=3,c=5; if (c=a+b) printf("yes\n"); else printf("no\n"); }
A.z
B.0
C.元素ch[5]的地址
D.字符y的地址
有以下程序: main() { char s[]="Yes\n/No",*ps=s; puts(ps+4); *(ps+4)=0; puts(s); } 程序运行后的输出结果是(选项D中的第一行是空行) ______。
A.n/No Yes /No
B./No Yes Yes
C.n/No /No
D.Yes /No
A.4
B.5
C.3
D.6
A.2
B.1
C.4
D.3
有以下程序 #include<stdio.h> main() {char cl,c2; c1=A+8-4 c2=A+8-5; printf("%C,%d\n",cl,c2); } 已知字母A的ASCIl码为65,程序运行后的输出结果是()。
A.E,69
B.D,69
C.E,D
D.输出无定值
(21 )有以下程序
# include (stdio.h >
main ()
{ int a = l ; b = 2 ;
for (; a < 8 ; a++ ) { b+=a ; a+=2 ; }
printf (" %d , %d \ n ", a , b ) ;
}
程序运行后的输出结果是
A ) 9 , 18
B ) 8 , 11
C ) 7 , 11
D ) 10 , 14
A.数1~10的累加和
B.数1~9的累加和
C.数1~9中的奇数之和
D.数1~10中的偶数之和
有以下程序 main() { int i=0,s=0; for(;;) { if(i==3||i==5)continue; if(i==6) break; i++; s+=i; }; printf("%d\n",s); } 程序运行后的输出结果是______。
A.10
B.13
C.21
D.程序进入死循环
有以下程序
#include<stdio.h>
#include<string.h>
main()
{char x[]=“STRING”;
x[0]=0;x[1]=’\0’;x[2]=’0’;
printf(”%d%d\n”,sizeof(x),strlen(x));
}
程序运行后的输出结果是()。
A.6 1
B.7 0
C.6 3
D.7 1
有以下程序
#include<stdio.h>
int fun()
{static int x=1;
x+=1;return x;
}
main()
{int i,s=1;
for(i=1;i<=s;i++)s+=fun();
printf(”%d\n”,s);
}
程序运行后的输出结果是()。
A.11
B.21
C.6
D.120