填空题
执行下列程序的输出结果是()。
#include
#include
main( )
{ char a[80]=“AB”, b[80]= “LMNP”;
int i=0;
strcat(a,b);
while(a[i++]!=‘\0’)
b[i]=a[i];
puts(b);
}
【参考答案】
LBLMNP
点击查看答案
相关考题
-
填空题
执行下列程序的输出结果是()。 #include main( ) { int x=10; do{ x--; }while(--x); printf(“%d\n”,x--); } -
单项选择题
若需要打开一个已经存在的非空文件“FILE”,并对其进行修改,正确的打开语句是()。
A.fp=fopen(“FILE”, “r+”);
B.fp=fopen(“FILE”, “r”);
C.fp=fopen(“FILE”, “ab+”);
D.fp=fopen(“FILE”, “w+”); -
单项选择题
当顺利地执行了文件关闭操作时,函数fclose的返回值是()。
A.-1
B.TURE
C.0
D.1
