下列程序段的运行结果是( )。char str[ ]="abc", *p=str;printf("%d\n",(p+2));
A. 67
B. 0
C. 字符'c'的地址
D. 字符'c'
4.下列程序的运行结果是()。#includevoidfun(int*x,int*y){printf("%d %d",*x,*y);*x=3;*y=4;}intmain(){intx=1,y=2;fun(&y,&x);printf(" %d %d\n",x,y);return0;}
A. 2 1 4 3
B. 1 2 1 2
C. 1 2 3 4
D. 2 1 1 2
2.已定义以下函数:int fun(int *p){return *p;}该函数的返回值是()。
A. 形参p中存放的值
B. 形参p所指存储单元中的值
C. 形参p的地址值
D. 不确定的值
#include #include main(){ char *p1,*p2, str[50]="abc";p1="abc";p2="abc";strcpy(str+1,strcat(p1,p2));printf("%s\n",str);}运行结果:________