未知题型 以下程序运行后,输出结果为______。 main() { int a[2][3]={1,3,5,7,9,11},*s[2],**pp,*p: s[0]=a[0],s[1]=a[1]; pp=s; p=(int*)malloc(sizeof(int)); **pp=s[1][1]; p=*pp; printf('%d/n',*p); }D.11
未知题型 有以下程序: #include<stdio.h> main(){ char c[6]; int i=0; for(;i<6;c[i]=getchar(),i++); for(i=0;i<6; i++)putchar(c[i]); printf('/n'); } 如果从键盘上输入: ab<回车> c<回车> def<回车> 则输出结果为______。A.a b c d e fB.a b c dC.ab c dD.abcdef
未知题型 以下程序的输出结果是______。 #include<stdio.h> #include<string.h> fun(char*w,int n) { char t,*s1,*s2; s1=w;s2=w+n-1; while(s1<s2) { t=*s1++; *s1=*s2-; *s2=t; } } main() { char*p; p='1234567'; fun(p,strlen(p)); puts(p); }A.1234567B.7654321C.1711717D.7177171