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 realloc() and free()? What is difference between them?



What is realloc() and free()? What is difference between them?..

Answer / hrpynux@gmail.com

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

Post New Answer

More C++ General Interview Questions

Is there any problem with the following: char *a=NULL; char& p = *a;?

1 Answers  


Differentiate between a template class and class template in c++?

0 Answers  


What is #include iostream?

0 Answers  


Which programming language should I learn first?

0 Answers  


What are different types of typecasting supported by C++

1 Answers   CA,


Can we make copy constructor private in c++?

0 Answers  


What is the outcome of cout< a) 16 b) 17 c) 16.5

0 Answers  


What is prototype in c++ with example?

0 Answers  


What is Virtual Inheritance?

7 Answers   Amazon, Wipro,


Is c++ a software?

0 Answers  


How much maximum can you allocate in a single call to malloc()?

0 Answers  


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

0 Answers  


Categories