欢迎来到牛牛题库网 牛牛题库官网
logo

单项选择题

有下列程序:
#include <stdio.h>
#include <stdlib.h>
int fun(int n)
{ int * p;
p=(int*)malloc(sizeof(int));
*p=n; return*p;
}
void main()
{ int a;
a=fun(10); printf("d\n",a+fun(10));
}
程序的运行结果是______。

A.0
B.10
C.20
D.出错
点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题