单项选择题
以下程序的输出结果是 ( )
void fun(float *p1,float *p2,float *s)
s=(float *)calloc(1,sizeof(float));
*s=*p1+*p2++;
main()
float s[2]=1.1,2.2,b[2]=<10.0,20.0,*s==a;
fun(a,b,s);
printf("%5.2f\n",* s);
A.11.10
B.12.00
C.21.10
D.1.10
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序 main() int m,n; printf( Enter m,n: );scanf( %d%d ,&m,&n); while(m!=n) while(m>n)m-=n; while(n>m)n-=m; printf( m=%d n ,m); 如果从键盘上输入65 14<回车>,则输出结果为 ( )
A.m=3
B.m=2
C.m=1
D.m=0
点击查看答案
单项选择题
有以下程序 并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[]= 1234567 ; fun(p,strlen(p)); puts(p); 程序运行后的输出结果是 ( )
A.1234567
B.7654321
C.1711717
D.7177171
点击查看答案
相关试题
有以下程序 #include<stdio.h> main...
设有如下程序: #include string.h ma...
有以下程序: #include <stdlib.h> ...