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 creating an object,
using 'new' and using 'malloc'?

Answer Posted / guna

malloc
1) can't initialize the memory
2)type casting is required
3)malloc is a function.
4)can't be overloaded.
new
1) memory can be initialized
2)no type casting for operator
3)new is an operator
4)can be overloaded.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are c and c++ different?

977


What is a dll entry point?

1003


Can you please explain the difference between overloading and overriding?

1091


What exactly is polymorphism?

1122


What is a storage class used in c++?

1077


What is c++ used for in games?

1164


How much do coding jobs pay?

1008


What is the use of 'using' declaration in c++?

1133


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1066


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1118


Explain function prototypes in C++.

1066


What is placement new?

1715


What does n mean in c++?

1159


How the virtual functions maintain the call up?

1166


What is the difference between multiple and multilevel inheritance in c++?

1128