问题 填空题

请填写空格:
#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的和。

答案

参考答案:cout<<*p;

解析: 函数 fun()通过指针可以带回返回值,a、b的和存放在*p中。

单项选择题
多项选择题