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

What is scope in c++ with example?

1113


What is constructor and destructor in c++?

1117


What is else syntax in c++?

1210


Can you write a function similar to printf()?

1130


What is abstraction in c++?

1360


What is a forward referencing and when should it be used?

1166


Write about the local class and mention its use?

1082


Explain the register storage classes in c++.

1188


What are the advantages of using const reference arguments in a function?

1077


When there is a global variable and local variable with the same name, how will you access the global variable?

1101


What is dev c++ used for?

1042


Define a conversion constructor?

1097


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1861


What happens when the extern "c" char func (char*,waste) executes?

1089


What is a storage class? Mention the storage classes in c++.

1026