Hi all,
To delete an array of objects we use delete[] and to delete an object we use delete.But how the compiler knows that in delete[] how many objects it has to delete?
i.e
if we write as
char *c = new char[10];
To delete this we use delete[].
For char *c = new char;
we use delete.
Then how the compiler differentiates between these two.

Thanks in advance,
Regards,
sharmila.