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...


How do you allocate and deallocate memory in C++?



How do you allocate and deallocate memory in C++?..

Answer / hrpynux@gmail.com

Use the malloc() function to allocate memory in designated blocks and the new function to create a new function. To reallocate memory, the realloc() function is used. When finished, always include a free() function in order to free up the memory. If you used new(), use delete() to free up the memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

How can you quickly find the number of elements stored in a dynamic array?

0 Answers  


Define vptr.

0 Answers  


What is the size of integer variable?

0 Answers  


Describe linked list using C++ with an example.

0 Answers  


In which memory a class gets stored(in heap /in stack)? And why??

2 Answers  


What is volatile and pragma? When they are used?

1 Answers  


Explain the problem with overriding functions

0 Answers  


Write a program using display() function which takes two arguments.

0 Answers  


Is c++ a high level language?

0 Answers  


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

0 Answers  


What is the use of cmath in c++?

0 Answers  


write the programme that convert a interger to biniry number

1 Answers   Amazon,


Categories