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

Why is "using namespace std;" considered bad practice?

1057


What is null pointer and void pointer?

1022


What is null and void pointer?

1016


What is setfill c++?

1106


Which field is used in c++?

1064


What is the basic concept of c++?

971


What is polymorphism and its types?

1025


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

1064


What is the this pointer?

1084


What happens when you make call 'delete this;'?

1042


In a function declaration what does extern means?

1003


Do you know the use of vtable?

1100


Specify some guidelines that should be followed while overloading operators?

1156


Explain the operator overloading feature in C++ ?

969


What is the difference between an array and a list?

990