单项选择题

以下程序的输出结果是( )。
#include <stdio.h>
main()
int i;
for(i=1;i<5;i++)
if(i%2) printf("*");
else continue;
printf("#");

printf("$\n");

A.*#*#*#$
B.#*#*#*$
C.*#*#$
D.#*#*$
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的输出结果是( )。 #include <stdio.h> main() int a=-1,b=1,k; if((++a<0)&&! (b-- <=0)) printf( %d %d n ,a,b); else printf( %d %d n ,b,
A.;
A) -1 1B) 0 1C)
单项选择题
有以下程序: #include <stdio.h> union pw int i; char ch[2]; a; main() a.ch[0]=13; a.ch[1]=0; printf( %d n ,a.i); 程序的输出结果是(注意:ch[0]在低字节,ch[1]在高字节)( )。
A.13
B.14
C.208
D.209
相关试题
  • 有以下程序: #include <stdio.h> m...
  • 请选出以下程序的输出结果( )。 #incl...
  • 请读程序: #include <stdio.h> fun...
  • 读程序: #include <stdio.h> f(in...
  • 已知字符0的ASCII码为十六进制的30,现...