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 is function declaration in c++ with example?

1177


Explain how overloading takes place in c++?

1092


When is the copy constructor called?

1199


What is the use of endl in c++?

1062


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

1259


what are the characteristics of Class Members in C++?

1089


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1122


Why do we need templates?

1045


Difference between pass by value and pass by reference?

1211


In c++, what is the difference between method overloading and method overriding?

1189


What are put and get pointers?

1182


What is c++ virtual inheritance?

1186


What is searching? Explain linear and binary search.

1037


Will c++ be replaced?

1100


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

1067