单项选择题

有以下程序:
main()
char s[]="Yes\n/No",*ps=s;
puts(ps+4);
*(ps+4)=0;
puts(s);
程序运行后的输出结果是(选项D中的第一行是空行) ( )。

A.n/No
Yes
/No
B./No
Yes
C./No
Yes
/No
D.
/No
Yes
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序段的输出结果是( )。 int a=1234; printf( %2d n ,
A.;A) 12
B.34
C.1234
D.提示出错,无结果
单项选择题
有以下程序: #include <string.h> main() char p[20]='a','b','c','d',q[]= abc ,r[]= abcde ; strcat(p,r); strcpy(p+strlen(q),q); printf( %d n ,strlen(p)); 程序运行后的输出结果是( )。
有以下程序:
#include <string.h>
main()
char p[20]='a','b','c','d',q[]="abc",r[]="abcde";
strcat(p,r); strcpy(p+strlen(q),q);
printf("%d\n",strlen(p));
程序运行后的输出结果是( )。
相关试题
  • 有以下程序: int fun(int x[],int...
  • 有以下程序: #include <stdio.h> m...
  • 有以下程序: #include <stdio.h> ...
  • 有以下程序: main() int a=15,b...
  • 若有以下说明和定义: typcdef int*INTE...