new char[1]and new charessentially the same, hm?
new char[1]
new char
You must remove char[1]using delete[]in accordance with the standard, therefore not completely identical.
char[1]
delete[]
The created objects are the same, an (invisible) account is used.
This means that you can use the characters in the same way, but you must delete them using the corresponding delete operator ( deleteversus delete[])
delete
. char [1] char *, char char.