I read that delete[]
can deallocate an array of objects. However it is not mentioned in any of the sources I've read that whether it is an error or undefined to supply an argument like delete[3]
.
I have the following queries.
- Is it specified in C++ standard whether I can/cannot suplly a parameter to
delete[]
asdelete[3]
? - If yes, what is the effect?
- Also is it specified in C++ whether I can/cannot use
delete
for an array allocated fromnew[]
?