下面程序的输出结果是( )。 main() {int a[]={1,2,3,4,5,6,7,8,9,0,},*p; p=a; printf("%d\n",*p+9); }
A.0
B.1
C.10
D.9
A.0
B.1
C.10
D.9
第1题
下面程序的输出结果是______。
main()
{
int x=11,*p=x;
*p=23;
printf("%d",x);
}
第2题
下面程序的输出结果是______。
#include"stdio.h"
main()
(cbar b[]="ABCD";
char*chp;
for(chp=b;*chp;chp+=2)
printf("%s\t",chp);
printf("\n");
}
第3题
下面程序的输出结果是【 】。 char b[]="ABCD"; main() { char *p=b; for(;*p;p++) printf("%s",p); printf("\n"); }
第5题
下面程序的输出结果是【 】。 include <stdio.h> main() { staic char b[]="Goodbye"; char * chp = &b [7]; while(- - chp>=&b[0])putchar (* chp); printf("\n"); }
第6题
下面程序的输出结果是【 】。 include<stdio.h> main() { static char a[]="language" ,b[]="program"; char*ptrl=a,*ptr2=b; int k; for(k=0;k<7;k++) if(*(ptrl+k)==*(ptr2+k)) printf("%c",*(ptrl+k));}
第7题
A.0
B.1
C.10
D.9
第8题
下面程序的输出结果是【 】。 main() { int i=3,j=2; char * a="DCBA"; printf("%c%c\n",a[i],a[j]) }