Difference between realloc() and free?

Answer Posted / khadeer.k

realloc():
memory when gets decreased, we can allocate it with the
function called realloc().
free:
it is used to free the memory in the program.

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1640


Can you inherit a private class?

631


What are the benefits of polymorphism?

622


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3555


What are classes oop?

596






Why is oop useful?

602


Is abstract thinking intelligence?

592


what is graphics

2011


What is polymorphism used for?

572


what are the realtime excercises in C++?

2333


What does sksksk mean in text slang?

1534


Get me a number puzzle game-program

1694


What is overloading and its types?

615


write string class as your own class in java without using any built-in function

1976


What is coupling in oop?

598