填空题
请填写空格:
#include<iostream>
using namespace std;
void fun(int x,int y,int * z)
*2 = x + y;
void main()
int a=100,b=100,c,*p=&c;
fun(a,b,p);
【10】
; //输出调用fun函数后返回a、b的和。
1、
【正确答案】
1、cout<<*p;
【答案解析】
[解析] 函数 fun()通过指针可以带回返回值,a、b的和存放在*p中。
提交答案
关闭