单选题:以下程序的输出结果是(  )。main(){ int i一0,S=0:for(;;){if(i==3 || i==5)

  • 题目分类:C语言
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
以下程序的输出结果是(  )。
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.程序陷入死循环

参考答案:
答案解析:

下列程序的输出结果是( )。main()(int p[83={11,12,13,14,15,16,17,18),i=0,

下列程序的输出结果是( )。main()(int p[83={11,12,13,14,15,16,17,18),i=0,j=0;while(i++<7)

查看答案

表达式“~0x11”的值是( )。

表达式“~0x11”的值是( )。A.0xFFEE B.0x71 C.0x0071 D.0xFFEl

查看答案

设有下列程序段:char str[]="HelloWorld":char*ptr;ptr=str ;执行上面的程序段

设有下列程序段:char str[]="HelloWorld":char*ptr;ptr=str ;执行上面的程序段后,*(ptr+10)的值为(

查看答案

Self-employment has affected Sally's attitude to life.

Self-employment has affected Sally's attitude to life. A.Right B.Wrong C.Doesn'

查看答案

According to the author,the reason why we go wrong about ou

According to the author,the reason why we go wrong about our fdends is that____

查看答案