单项选择题
分析下列程序:
#include<stdio.h>
main()
int*p1,*p2,*p;
int a=6,b=9;
p1=&a;p2=&b;
if(a<b)p=p1;p1=p2;p2=p;
printf("%d,%d",*p1,*p2);
printf("%d,%d",a,b);
程序的输出结果为()。
A. 9,6 6,9
B. 6,9 9,6
C. 6,9 6,9
D. 9,6 9,6
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序#includevoid f(char p[][10],int n) char t[10];int i,j; for(i=0;i<N-1;i++) for(j=i+1;j<N;j++) if(strcmp(p[i],p[j])>0) strcpy(t,p[i]);strcpy(p[i],p[j]);strcpy(p[j],t);main() char p[5][10]= abc , aabdfg , abbd , dedbe , cd ;f(p,5);printf( %d n , strlen(p[0]));程序运行后的输出结果是()。
A. 2
B. 4
C. 6
D. 3
点击查看答案&解析
单项选择题
以下程序运行后的输出结果是() #define F(X,Y)(X) * (Y) main( ) int a=3,b=4; printf( %d n ,F(a++,b++));
A. 12
B. 15
C. 16
D. 20
点击查看答案&解析
相关试题
常见的软件开发方法有结构化方法和面向对象...
设有下列程序:#include<stdio.h>#inc...
设有下列程序: #include<stdio.h> ...
以下程序运行后的输出结果是 。 # incl...
以下程序运行后的输出结果是______。...