What does delete [] do in c++?

What does delete [] do in c++?

What does delete [] do in c++?

The delete keyword replaces the free function in C and will release storage reserved with new. int *ptr1; // Declare a pointer to int. ptr1 = new int; // Reserve storage and point to it.

  • 686.3K views
  • 2024-01-04 20:37:46
Show all Q/A Info

Does gmod use c++?
Garry's Mod includes the functionality to modify the game by developing scripts written in the Lua programming language.
2024-02-20 08:30:09


Do you keep trophies if you delete game ps5?
No, all the trophies are stored and synced onto your PSN account - your gamer tag. No, deleting the game doesn't impact trophies at all…it also doesn't delete saves unless you manually go through and delete the save files…it just removes the game application when you delete the game.. So, if you need space…
2024-01-10 07:39:59


Will my ps4 run better if i delete games?
It's not a thing. Your PS4 has reserved OS space for anything it needs as far as temp storage and system related file access. It uses a proprietary file system, so it doesn't suffer from fragmentation like a Windows PC.
2023-08-08 01:41:15


Does reset delete files?
A reset will remove all of your personal data and files.
Make sure to save anything that will be erased. That includes files, photos, videos, and any extra programs you've put on the computer. To back everything up, you can save your data using cloud storage, a flash drive, or an external hard drive.
2023-04-18 23:05:23