C++面向对象程序设计 004: 神秘的数组初始化最近的提交 ---- (北大Mooc)

文章目录


原题题目

在这里插入图片描述

#include <iostream>
using namespace std;

int main()
{
    
    
	int * a[] = {
    
    };
    *a[2] = 123;
	a[3][5] = 456;
	if(! a[0] ) {
    
    
		cout << * a[2] << "," << a[3][5];
	}
	return 0;
}


代码实现

0,new int,new int,new int[6]

猜你喜欢

转载自blog.csdn.net/qq_37500516/article/details/114682707