
以下程序#include "stdio、h"main(){ char *p="ABCDEF",*q;q=p+3;print
以下程序#include "stdio、h"main(){ char *p="ABCDEF",*q;q=p+3;printf("%s/n",q);}的输出结果是()。

以下程序#include "stdio、h"main(){ char *p="ABCDEF",*q;q=p+3;printf("%s/n",q);}的输出结果是()。
第1题
以下程序的输出结果是 ______。 #include<stdio> main() {int a=200; #define a 100 printf("%d",a) ; #undefa printf("%d",a) ; }
A.200 100
B.100 100
C.100 200
D.200 200
第2题
以下程序的输出结果是 【7】 。
#include "stdio.h"
main()
{int a=065;
printf("%d\n",--a);
}
第3题
以下程序的输出结果是_____.
# include
main()
{ printf(“%d\n”,strlen(“IBM\n012\1\\”));
}
第4题
以下程序: #include<stdio.h> #include<string.h> main() {char str[]="abcd\n\123\xab"; printf("%d",(str)); } 运行后的输出结果是()。
A.10
B.9
C.7
D.14
第5题
以下程序输出的结果是【 】。 include <stdio.h> main() { int a=5,b=4,c=3,d; d=(a>b>c); printf("%d\n",d); }
第6题
A.12
B.15
C.6
D.5
第7题
阅读以下程序 #include<iostream.h> void main() { charline[10]; in>>line; cout<<line<<endl; } 如运行时输入This is an example.<CR>,则程序的输出结果是()。
A.This
B.This is
C.This is a
D.This is an example.
第8题
A.100
B.80
C.64
D.32
第9题
有以下程序: #include<stdio.h> #include<string.h> #include void f(char*s,char*t) { char k; k=*s; *s=*t; *t=k; s++;t--; if(*s)f(s,t): } main() {char str[10]="abcdefg",*P; P=str+strlen(str)/2+1: f(p,p-2); printf("%s\n",str); } 程序运行后的输出结果是()。
A.abcdefg
B.gfedcba
C.gbcdefa
D.abedcfg
第10题
请阅读以下程序: #include<stdio.h> #include<string.h> void fun(int b[]) { static int i=0; do {b[i]+=b[i+1]; }while(i<2);} main() { int k,a[5]={1,3,5,4,9}; fun(A); for(k=0;k<5;k++)printf("%d",a[k]);} 上面程序的输出是()。
A.13579
B.48579
C.48549
D.48999