Which of the following operator cannot be overloaded?
Answers were Sorted based on User's Feedback
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 |
Answer / vidhya
Conditional Operator (?:)
Membership operator (.)
sizeof operator (sizeof())
.-> operator
Is This Answer Correct ? | 0 Yes | 0 No |
Which one between if-else and switch is more efficient?
Define pre-condition and post-condition to a member function in c++?
What are dynamic type checking?
What is the use of 'this' pointer?
What is std :: endl?
What problem does the namespace feature solve?
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; }
Can comments be longer than one line?
write a C++ programming using for loop: * * * * * * * * * *
What does new do in c++?
What do you mean by volatile and mutable keywords used in c++?
Why cout is used in c++?