单项选择题

有以下程序:
#include <string.h>
main()

char str[][20]="Hello","beijing",*p=str;
ptintf("%\n",strlen(p+20));

程序运行后的输出结果是( )。

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

单项选择题
有以下程序: main() char a1='M',a2='m'; printf( %c n ,(a1,a2)); 以下叙述中正确的是( )。
A.程序输出大写字母M
B.程序输出小写字母m
C.格式说明符不足,编译出错
D.程序运行时产生出错信息
单项选择题
有以下程序: #include <stdio.h> main() int a=1,b=2,c=3,x; x=(a^b)&c; printf( %d n ,x); 程序的运行结果是( )。
A.0
B.1
C.2
D.3
相关试题
  • 以下程序调用fmdmax函数返回数组中的量大值...
  • 有以下程序: void sort(int a[], ...
  • 有以下程序: #include <stdio.h> m...
  • 有以下程序: #include <stdio.h> m...
  • 有以下程序: #include <stdio.h> i...