C++ new int[0] — will it allocate memory?

前端 未结 6 1910
無奈伤痛
無奈伤痛 2020-11-22 06:16

A simple test app:

cout << new int[0] << endl;

outputs:

0x876c0b8

So it looks like it works.

6条回答
提交回复
热议问题