单项选择题

有以下程序
#include
main()
char p[20]='a','b','c','d',q[]="abc", r[]="abcde"
strcat(p,r); strcpy(p+strlen(q),q);
printf("%d \n",sizeof(p));程序运行后的输出结果是________。
(A) 9
(B) 6
(C) 11
(D) 7

<上一题 目录 下一题>
热门 试题

单项选择题
执行以下语句段后,xy的值是( )。 int*pt,xy; xy=200; pt=&xy; xy=*pt+30;
A) 200
B) 170
C) 260 D) 230
单项选择题
有以下程序: int f1(int x, int y) return x>y x:y; int f2(int x, int y) return x>y y:x; main() int a=4, b=3, c=5, d=2, e, f, g; e=f2(f1(a, b), f1(c, d)); f=f1(f2(a, b) , f2(c, d)); g=a+b+c+d-e-f; printf( % d, %d, %d n , e, f, g); 程序运行后的输出结果是______。
A) 4, 3, 7
B) 3, 4, 7
C) 5, 2, 7
D) 2, 5, 7
相关试题
  • 设有下列的程序段; char str[]= Hel...
  • 有以下程序: #include<stdio.h> fun...
  • 以下程序中,fun函数的功能是求3行4列二...
  • 以下程序的功能是:求出数组x中各相邻两个...
  • 以下程序的输出结果是 。 #include <s...