通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
有以下程序:
#include <stdio.h> #include <stdlib.h> void fun(int*p1,int*p2,int*s) { s=(int*)malloc(sizeof(int)); *s=*p1+*p2; free(s); } main() { int a=1,b=40,*q=&a; fun(&a,&b,q); printf("%d\n",*q); }
程序运行后的输出结果是()。