单项选择题

有以下程序:
#include <stdio.h>
#include <string.h>
main()
char str[][20]="Hello","Beijing",*P=str[0];
printf("%d\n",strlen(p+20));
程序运行后的输出结果是( )。

A.0
B.5
C.7
D.20
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <stdio.h> struct s int x,y; data[2]=10,100,20,200; main() struct s *p=data; printf( %d n ,++(p->x)); 程序运行后的输出结果是( )。
A.10
B.11
C.20
D.21
单项选择题
有以下程序: #include <stdio.h> main() int k=4,n=0; for( ;n<k;) n++; if(n%3! =0) continue; k--; printf( %d,%d n ,k,n); 程序运行后的输出结果是( )。
A.1,1
B.2,2
C.3,3
D.4,4
相关试题
  • 有以下结构体说明和变量定义,如下图所示,...
  • 以下程序的功能是计算:。 #include <s...
  • 以下程序中函数scmp的功能是返回形参指针s...
  • 设变量x为float型且已赋值,则以下语句中能...
  • 设有如下程序段: int x=2002,y=...