单项选择题

有以下程序:
main()
int k=5;
while(--k)printf("%d",k-=3);
printf("\n");
执行后的输出结果是______。

A.1
B.2
C.4
D.死循环
<上一题 目录 下一题>
热门 试题

单项选择题
以下语句或语句组中,能正确进行字符串赋值的是______。
A.char*sp;*sp="right!";
B.char s[10];s="right!";
C.char s[10];*s="right!";
D.char*sp="right!";
单项选择题
有以下程序: #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 ,sizeof(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",sizeof(p));
程序运行后的输出结果是______。
相关试题
  • i%2或i%2==1
  • 以下程序运行后的输出结果是______。...
  • 以下程序中函数fun的功能是:统计person所...
  • j+1
  • 以下程序的功能是:求出数组x中各相邻两个...