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 |
Can a class be static in c++?
Specify some guidelines that should be followed while overloading operators?
What is class syntax c++?
Describe private, protected and public – the differences and give examples.
What is a Default constructor?
What is c++ library?
Why do we use constructor?
how to find the maximum of 10 numbers ?
Show the declaration for a static member variable.
how is returning structurs from functions?Show an eg?
How would you use qsort() function to sort an array of structures?
Give 2 examples of a code optimization?