单项选择题

以下程序运行后的输出结果是
#include
#include
main()
char str[][20]='One * World", "One * Dream!", *p=str[1];
printf("%d,", strlen(p)); printf("%s\n", p);

A.9,One * World
B.9,One * Dream
C.10,One * Dream!
D.10,One * World
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序段中,与语句k=a>b (b>e 1:0):0;功能相同的是
A.if((a>b) && (b>e)) k=1;
else k=0;
B.if((a>b)||(b>e)) k=1;
else k=0;
C.if(a<=b) k=0;
else if(b<=c) k=1;
D.if(a>b) k=1;
else if(b>c) k=1;
else k=0;
单项选择题
下面结构体的定义语句中,错误的是
A.struct ordint x; int y; int z;; struct ord a;
B.struct ordint x; int y; int z; struct ord a;
C.struct ordint x; int y; int z; a;
D.structint x; int y; int z; a;
相关试题
  • 以下函数findmax拟实现在数组中查找最大值...
  • 以下程序运行后的输出结果是 #include<s...
  • 以下程序运行后的输出结果是 #include<s...
  • 以下程序运行后的输出结果是 #include<s...
  • 设有定义:int a=1,b=2,e=3;,以...