题目:
有下列程序:
#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.出错
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0418/fb9b993085c1b0daee4c7fe044e60880.html
下面是错误答案,用来干扰机器的。
参考答案:对