单项选择题
下面程序的输出是______。
char s[]="ABCD";
main()
char *p;
for(p=s;p<s+4;p++)
printf("%s\n",p);
A.ABCD
BCD
CD
D
B.A
B
C
D
C.D
C
B
A
D.ABCD
ABC
AB
A
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
main() float x=123.456; printf( %-5.2f n ,x);以上程序输出的结果是______。
A.123.4
B.123.5
C.123.45
D.123.46
点击查看答案&解析
单项选择题
以下程序(程序左边的数字为附加的行号)______。 1#include<str.h> 2#include<stdio.h> 3main() 4 char s[]= string ; 5puts(s); 6strcpy(s, hello ); 7printf( %3s n ,s);
A.没有错
B.第1行有错
C.第6行有错
D.第7行有错
点击查看答案&解析
相关试题
下面程序的输出结果是______。 unsi...
模块本身的内聚是模块独立性的重要性度量因...
下列程序的输出结果是______。 main...
下面语句的输出结果是______。printf...
若有以下类型说明语句: char w;int x...