In C++, which of the following operator cannot be overloaded?
In C++, which of the following operator cannot be overloaded? Correct Answer . [dot]
- In C++ we can overload some operators like +, -, , -> etc. But we cannot overload any operators in it.
- Some of the operators cannot be overloaded. These operators are like below? “.”
- (.) Member access or dot operator
- “?: ” Ternary or conditional operator
- “::” Scope resolution operator
- “.*” Pointer to member operator
- “sizeof” The object size operator
- “typeid” Object type operator
These operators cannot be overloaded because if we overload them it will make serious programming issues.
মোঃ আরিফুল ইসলাম
Feb 20, 2025