[单选题]

有以下程序
#include <stdio.h>
#include <stdlib.h>
void  fun( double  *p1,double  *p2,double  *s)
{  s = (double *)calloc( 1,sizeof(double) );
  *s = *p1 + *( p2+1 );
}
main()
{  double  a[2] = { 1, 2.2 }, b[2] = { 10.0, 20.0 }, *s=a;
  fun( a, b, s );
  printf( "%5.2f ", *s);
}
程序的输出结果是(  )。

A.11.10

B.1.10

C.12.10

D.21.10

参考答案与解析:

相关试题

有以下程序<br />#include <stdio.h><br />#include <stdlib.h><br />void