004 神秘的数组初始化

#include <iostream>
using namespace std;

int main()
{
	int * a[] = {
NULL,NULL, new int(123),new int[6] {1,1,1,1,1,456}
};
	
	*a[2] = 123;
	a[3][5] = 456;
	if(! a[0] ) {
		cout << * a[2] << "," << a[3][5];
	}
	return 0;
}
posted @ 2022-02-19 22:36  icefield817  阅读(98)  评论(0编辑  收藏  举报