单项选择题

有以下程序:   main( )   { char *p[10]={“abc”,”aabdfg”,”dcdbe”,”abbd”,”cd”};    printf(“%d\n”,strlen(p[4])); }   执行后输出结果是( )。

A.2
B.3
C.4
D.5
<上一题 目录 下一题>
热门 试题

单项选择题
以下选项中不能正确把c1定义成结构体变量的是( )。
A.typedef struct   { int red;    int green;    int blue;   } COLOR;      COLOR cl;
B.struct color cl   { int red;   int green;    int blue;   }
C.struct color   { int red;   int green;   int blue;   } cl;
D.struct   { int red;    int green;    int blue;   } cl;
单项选择题
下列叙述中正确的是【 】。
A.一个算法的空间复杂度大,则其时间复杂度也必定大
B.一个算法的空间复杂度大,则其时间复杂度必定小
C.一个算法的时间复杂度大,则其空间复杂度必定小
D.上述三种说法都不对
相关试题
  • 有以下程序:struc STU {char name[1...
  • 以下程序中函数scmp的功能是返回形参指针s...
  • 有以下程序:struct STU{ char num[1...
  • 有以下程序#includevoid f(char P[]...
  • 有以下程序:int f(int b[ ][4])...