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 is an operator in c++?
In what situations do you have to use initialization list rather than assignment in constructors?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
What are the general quetions are in DEna bank manager IT/System interviews?
What is the difference between method overloading and method overriding in c++?
What is a sequence in c++?
What do c++ programmers do?
What are the two types of comments?
Can we run c program in turbo c++?
What is object file? How can you access object file?
how to connect with oracle 9i with server in socket program in c/c++
What is a local reference?
What is the error in the code below and how should it be corrected?
What are containers in c++?
What is pointer in c++ with example?