Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between realloc() and free()

Answer Posted / nitin

The free subroutine frees a block of memory previously
allocated by the malloc subroutine. Undefined results occur if
the Pointer parameter is not a valid pointer. If the Pointer
parameter is a null value, no action will occur. The realloc
subroutine changes the size of the block of memory pointed to
by the Pointer parameter to the number of bytes specified by
the Size parameter and returns a new pointer to the block. The
pointer specified by the Pointer parameter must have been
created with the malloc, calloc, or realloc subroutines and
not been deallocated with the free or realloc subroutines.
Undefined results occur if the Pointer parameter is not a
valid pointer.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can we have joblib in a proc ?

2311


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2373


What does 3 periods mean in texting?

1072


Where define directive used?

1101


How many loops are there in c?

1115


What is the use of a static variable in c?

1062


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1724


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1065


How do you determine a file’s attributes?

1090


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1143


Explain what are the different file extensions involved when programming in c?

1116


how do you programme Carrier Sense Multiple Access

1970


Differentiate fundamental data types and derived data types in C.

1037


What are the types of type qualifiers in c?

1092


Can two or more operators such as and be combined in a single line of program code?

1376