全部题库 / C语言 / 试题详情
单选题 C语言
2015-06-11

以下程序运行后的输出结果是( )。
main()
{ char *p; int i;
p=(char *)malloc(sizeof(char)*20);
strcpy(p,"welcome");
for(i=6;i>=0;i--) putchar(*(p+i));
printf("\n"); free(p);
}

A.emoclew
B.welcome
C.come
D.不确定类型

参考答案

A

答案解析

暂无解析

你可能感兴趣的试题

A.可用S定义结构体变量
B.可用T定义结构体变量
C.S是struct类型的变量
D.T是struct S类型的变量
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;} n;
D.struct {int x;int y;int z;} a;