题目内容:
有以下程序: #include<stdio.h>#include<stdlio.h>void fun(int*pl,int*p2,int*s){s=(int*)malloc(sizeof(int)); *s=*pl+*p2; free(s); }main( ) { int a=1,b=40,*q=&a; fun(&a,&b,q); printf("%d",*q); } 程序运行后的输出结果是( )。 A.42
B.0
C.1
D.41
参考答案:
答案解析: