Difference between delete and delete[]?
Answer Posted / laxman
delete is only just to delete a variable which is created
by new operator. delete[] , it deletes the array where the
varaialbe points .
| Is This Answer Correct ? | 24 Yes | 8 No |
Post New Answer View All Answers
What are register variables?
Array base access faster or pointer base access is faster?
What is the main function c++?
How long it will take to learn c++?
Why #include is used?
Is java easier than c++?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
How many types of classes are there in c++?
How does list r; differs from list r();?
Do you need a main function in c++?
What is the function to call to turn an ascii string into a long?
Why is c++ still popular?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
Which is not a valid keyword a) public b) protected c) guarded
What is c strings syntax?