How do you allocate and deallocate memory in C++?
Use the malloc() function to allocate memory in designated blocks and the new function to create a new function. To reallocate memory, the realloc() function is used. When finished, always include a free() function in order to free up the memory. If you used new(), use delete() to free up the memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can you quickly find the number of elements stored in a dynamic array?
Define vptr.
What is the size of integer variable?
Describe linked list using C++ with an example.
In which memory a class gets stored(in heap /in stack)? And why??
What is volatile and pragma? When they are used?
Explain the problem with overriding functions
Write a program using display() function which takes two arguments.
Is c++ a high level language?
Differentiate between a template class and class template in c++?
What is the use of cmath in c++?
write the programme that convert a interger to biniry number