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...


Explain the difference between 'operator new' and the 'new'
operator?



Explain the difference between 'operator new' and the 'new' operator?..

Answer / richa

The term "operator new" is used incase when u are
overloading the global "new" operator.We can overload ne
operator just as any other operators i.e +,-,*,=etc.

The term "new operator" is used in case of dynamic
allocation of memory.When a variable is allocated memory
dynamically the new operator is used.
Eg:
int *p=new int;
//here p is pointer to integer.So in order to allocate
memory for it we have used the new operator.

Is This Answer Correct ?    15 Yes 0 No

Post New Answer

More C++ General Interview Questions

what are Access specifiers in C++ class? What are the types?

0 Answers  


What are iterators in c++?

0 Answers  


How would you represent an error detected during constructor of an object?

1 Answers  


Explain the use of this pointer?

0 Answers  


What's the order in which the objects in an array are destructed?

0 Answers  


What is exception handling? Does c++ support exception handling?

0 Answers  


What is the first name of c++?

0 Answers  


What is a multiset c++?

0 Answers  


Which should be more useful: the protected and public virtuals?

0 Answers  


Can we inherit constructor in c++?

0 Answers  


How to tokenize a string in c++?

0 Answers  


How do I make turbo c++ full screen?

0 Answers  


Categories