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 new() and malloc()?

Answer Posted / nashiinformaticssolutions

o new initializes the object and calls its constructor.
o malloc allocates memory but does not call constructors.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are vectors used for in c++?

1066


Is multimap sorted c++?

997


Can you declare an array without a size in c++?

1001


What are pointer-to-members? Explain.

1128


What is low level language in simple words?

1020


Describe private, protected and public – the differences and give examples.

1171


Incase of a function declaration, what is extern means?

952


What is the history of c++?

1061


Does c++ support multilevel and multiple inheritances?

995


How can you differentiate between inheritance and implementation in c++?

1198


Write syntax to define friend functions in C++.

1059


Which is the best c++ compiler?

1039


How many ways can a variable be initialized into in C++?

1006


What is the use of default constructor?

1078


What are the classes in c++?

1096