单选题
有如下C++代码: #include <iostream>...
发布于 2022-03-02 17:04:11
有如下C++代码:
#include <iostream>
using namespace std
void fun(int *p1, int *p2, int *t)
{
t = (int *)malloc(sizeof(int))
*t = *p1 + *(p2++)
}
int main()
{
int a[2] = { 1,2 }
int b[2] = { 10,20 }
int *t = a
fun(a, b, t)
cout << *t << endl
} 输出是多少?
登录后免费查看答案
关注者
0
被浏览
35