Difference between realloc() and free?

Answer Posted / pratik bokade

✨Free() method is used to dynamically de-allocate the memory.
Syntax: Free(Ptr);
✨Realloc() or reallocation method is used dynamically changed the memory allocation of a previously allocated memory.
Syntax : Ptr=Realloc(Ptr, new size);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and why is it important?

556


What are the three main types of variables?

600


Is this job good for future? can do this job post grduate student?

1689


What does oop mean in snapchat?

680


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

942






How do you answer polymorphism?

577


What do you mean by Encapsulation?

640


What are objects in oop?

608


What does I oop mean?

616


Why do we use oops?

592


Can you explain polymorphism?

579


What is inheritance in oop?

598


What polymorphism means?

620


How is class defined?

584


what is the drawback of classical methods in oops?

2918