单项选择题
有以下程序:
#include <stdlib.h>
void fun(int * s,int * * d)
* *d=*(s+2);
main()
int a[]=1,2,3,4,5,*b;
b=(int *)malloc(sizeof(int));
fun(a,&B) ;
printf("%d\n",*b+1);
程序的输出结果是 ( )
A.2
B.3
C.4
D.5
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序的输出结果是 ( ) 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> main...
设有如下程序: #include string.h ma...