What is realloc() and free()? What is difference between them?
The free subroutine frees a block of memory previously allocated by the malloc subroutine. The realloc () function is used to allocate memory and has the following prototype: void * realloc (void * ptr, unsigned int num);
| Is This Answer Correct ? | 0 Yes | 0 No |
What causes a runtime error c++?
Differentiate between a template class and class template in c++?
Explain abstraction.
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is virtual destructors? Why they are used?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What is pointer in c++ with example?
What are put and get pointers?
How should runtime errors be handled in c++?
How many types of modularization are there in c++?
write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX