单项选择题
有以下程序(strcat函数用于连接两个字符串):
#include <stdio.h>
#include <string.h>
main()
char a[20]="ABCD\0EFG\0",b[]="IJK";
strcat(a,b);printf("%s\n" ,a);
程序运行后的输出结果是
A) ABCDE\0FG\0IJK
B) ABCDIJK
C) IJK
D) EFGIJK
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序段: struct st int x; int *y; *pt;. int a[]=1,2,b[]=3,4; struct st c[2]=10,a,20,b; pt=c; 以下选项中表达式的值为11的是
A) *pt->y
B) pt->x
C) ++pt->x
D) (pt++)->x
点击查看答案&解析
单项选择题
下面结构体的定义语句中,错误的是
A) struct ord int x;int y;int z;;struct ord a;
B) struct ord int x;int y;int z; struct ord a;
C) struct ord int x;int y;int z; a;
D) struct int x;int y;int z;a;
点击查看答案&解析
相关试题
以下程序: main() unsigned char a...
有以下程序: int add (int a,int b...