Describe delete operator?
Answer / Gaurav Kumar Shah
In C++, the delete operator is used to deallocate memory that was previously allocated using new or malloc. It frees up the memory associated with a pointer variable and nullifies the pointer. If the object being deleted has a non-trivial destructor, it will be called before the memory is actually freed.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are function poinetrs? where are they used?
Write a program that will count the number of digits in an input integer up to value MAX_VALUE (2147483647). Thus, for an input of 5837 the output should be 4 digits Make sure that your program works for the numbers 0, 1, and 10. For the number 0, the output should be 1 digit
What are virtual functions and what is its use?
What is the best c++ ide?
How to defines the function in c++?
Program to check whether a word is a sub-string or not of a string typed
Write a program to find the reverse Fibonacci series starting from N.
What is a try block?
What is polymorphism in c++? Explain with an example?
What do you mean by translation unit in c++?
What sorting algorithm does c++ use?
How size of a class can be calulated?