单项选择题

以下程序的输出结果是()     
#include     
main()      
{inti: 
for(i=l;i<=5;i++)        
{if(i%2) 
printf(“*”);        
else 
continue;        
printf(“*”);}        
printf(“$\n”);I 
  

A.*#*#*#$
B.#*#*#*$
C.*#*#$
D.#*#*$


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

设有以下语句: 
char str1[]= “string”,str2[8],*str3,*str4= “ string”;     
则不能对库函数strcpy(复制字符串)的正确调用的是()

A.strepy(str1,“HELLO1”);
B.strepy(str2,“HELL02”);
C.strcpy(str3, “HELL03”)
D.strcpy(str4, “HELLO4”);

4.单项选择题C语言中形参的缺省存储类别是()   

A.自动(auto)
B.静态(static)
C.寄存器(register)
D.外部(extern)

8.单项选择题在C语言中,下列描述正确的是()

A.不能使用do—while语句构成的循环
B.do-while语句构成的循环必须用break语句才能退出
C.do-while语句构成的循环,当while语句中的表达式值为非零时结束循环
D.do-while语句构成的循环,当while语句中的表达式值为零时结束循环