What is the difference between operator new and the new
operator?

Answer Posted / vrushali

Operator new is a function name used for operator overloading and new operator is used for allocating memory

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

635


What is bubble sort c++?

565


Write a program to add three numbers in C++ utilizing classes.

613


Differentiate between structure and class in c++.

588


What is a rooted hierarchy?

671






What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

685


How do I use arrays in c++?

576


What is the difference between *p++ and (*p)++ ?

766


How do you declare A pointer to function which receives an int pointer and returns a float pointer

670


Why main function is special in c++?

654


Explain polymorphism?

575


Define Virtual function in C++.

616


Write is a binary search tree? Write an algo and tell complexity?

576


Can we specify variable field width in a scanf() format string? If possible how?

650


What are multiple inheritances (virtual inheritance)?

571