#include using namespace std;int *fun(){ int a[3] = { 1, 2, 3 }; return a;}int main(){ int *a = fun(); int i, j; for (i = 0; i < 3; i++) cout << a[i]<
#include using namespace std;struct str{ int a[3]; char c[10]; };int main(){ str aa = { 1, 2, 3,"wei" }; str bb = aa;//这里bb,aa是不同的实体 bb.a[2] = 99; cout << aa.a[2] << endl;//输出为3 return 0;}