有以下程序
#include <stdio.h>
#include <stdlib.h>
Int fun(int n)
{ int *p;
P=(int*)malloc(sizeof(int));
*p=n; return *p;
}
Main()
{ int a;
A=fun(10); printf("%d\n",a+fun(10));
}
程序的运行结果是______。
B.10 C.20 D.出错正确答案C
有以下程序
#include <stdio.h>
#include <stdlib.h>
Int fun(int n)
{ int *p;
P=(int*)malloc(sizeof(int));
*p=n; return *p;
}
Main()
{ int a;
A=fun(10); printf("%d\n",a+fun(10));
}
程序的运行结果是______。
B.10 C.20 D.出错正确答案C