Which operator can not be overloaded in C++?

Answer Posted / hrpynux@gmail.com

The only C operators that can't be are . and ?: (and sizeof , which is technically an operator). C++ adds a few of its own operators, most of which can be overloaded except :: and . * .

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why and when we can declar member fuction as a private in the class?

1600


What is an iterator class in c++?

601


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

595


Out of fgets() and gets() which function is safe to use and why?

723


What are manipulators used for?

613






Are iterators pointers?

678


What is set in c++?

660


Define pure virtual function?

563


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

961


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

701


Which sort does c++ use?

579


Define a nested class. Explain how it can be useful.

632


What is the best c++ ide?

606


Explain what is class definition in c++ ?

599


Define a constructor - what it is and how it might be called (2 methods)?

604