standard-compilance tag

1 questions


1 answers
79 views
0
Does "new int[0]" allocate memory?

On my computer,cout << new int[0] << endl;When I ran , I printed 0x876c0b8.I think I'm allocating memoryAssigning [0] means assigning empty. Personally, I thought there would be an error, ...


© 2024 OneMinuteCode. All rights reserved.