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 is memory managed in C++?

Answers were Sorted based on User's Feedback



How is memory managed in C++?..

Answer / nashiinformaticssolutions

Because C++ enables dynamic memory, the user must manually manage memory instead of relying on a garbage collector function to do it. The "new" and "delete" operators are used to dynamically allocate and deallocate memory, respectively.

Is This Answer Correct ?    0 Yes 0 No

How is memory managed in C++?..

Answer / nashiinformaticssolutions

C++ uses manual memory management with new and delete and also provides smart pointers like std::unique_ptr and std::shared_ptr.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Why was c++ created?

0 Answers  


What is virtual function? Explain with an example

0 Answers  


What about Virtual Destructor?

1 Answers   Virtusa,


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.

1 Answers  


Tell me difference between constant pointer and pointer to a constant.

0 Answers   Honeywell, Zomato,


What is pointer with example?

0 Answers  


What are static variables?

0 Answers  


What is volatile and pragma? When they are used?

1 Answers  


What are friend classes? What are advantages of using friend classes?

0 Answers  


Can a new be used in place of old mallocq? If yes, why?

0 Answers  


Is swift faster than c++?

0 Answers  


Is there any difference between int [] a and int a [] in c++?

0 Answers  


Categories