Answer Posted / alka
free()is a macro used to deallocate memory.
when we need more memory realoc() reallocate memory
according to given size, if there is no memory 4
alocation ,it will free previous allocated memory &
allocate new one using malloc().
ex: int *p = realloc(p,sizeof(p)*2);
Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What is the types of inheritance?
What is constructor overloading in oop?
What is encapsulation oop?
What is the renewal class?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What are constructors in oop?
What does oop mean in snapchat?
Why do we use polymorphism in oops?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is an interface in oop?
What are the 3 principles of oop?
What is encapsulation example?
What are the 3 pillars of oop?
Why do we use inheritance?
write a program that takes input in digits and display the result in words from 1 to 1000