Which of the following operator cannot be overloaded?

Answers were Sorted based on User's Feedback



Which of the following operator cannot be overloaded?..

Answer / soundarya

sizeof
* pointer to member operator
. membership operator
:: scope resolution operator
?: conditional operator
can not be overloaded


using friend function these four operator can not be overloaded
=
()
[]
->

Is This Answer Correct ?    1 Yes 0 No

Which of the following operator cannot be overloaded?..

Answer / vidhya

Conditional Operator (?:)
Membership operator (.)
sizeof operator (sizeof())
.-> operator

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Which one between if-else and switch is more efficient?

0 Answers  


Define pre-condition and post-condition to a member function in c++?

0 Answers  


What are dynamic type checking?

0 Answers  


What is the use of 'this' pointer?

0 Answers   Fidelity,


What is std :: endl?

0 Answers  






What problem does the namespace feature solve?

1 Answers  


template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }

1 Answers   Quark,


Can comments be longer than one line?

0 Answers  


write a C++ programming using for loop: * * * * * * * * * *

4 Answers   TCS,


What does new do in c++?

0 Answers  


What do you mean by volatile and mutable keywords used in c++?

0 Answers  


Why cout is used in c++?

0 Answers  


Categories