Computer Science Engineering (CSE)
Which operator is required to be overloa...
Which operator is required to be overloaded as member function only?
++ (postfix version)
Answer» D. =
View all MCQs in:
Which of the following is incorrect in C++? (1)When we write overloaded function we must code the function for each usage. (2)When we write function template we code the function only once. (3)It is difficult to debug macros (4)Templates are more efficient than macros
Which of the following operators are overloaded by default by the compiler in every user defined classes even if user has not written? 1) Comparison Operator (==) 2) Assignment Operator (=)
Choose the operator which cannot be overloaded.
In C++, const qualifier can be applied to 1) Member functions of a class 2) Function arguments 3) To a class data member which is declared as static 4) Reference variables
Which of the following operators cannot be overloaded?
How C++ compiler does differ between overloaded postfix and prefix operators?
Which of the following is true about new when compared with malloc: 1) new is an operator, malloc is a function 2) new calls constructor, malloc doesn’t 3) new returns appropriate pointer, malloc returns void * and pointer needs to typecast to appropriate type.
Which is the pointer which denotes the object calling the member function?
Which of the following operators should be preferred to overload as a global function rather than a member method?
A member function can always access the data in __________, (in C++).
Login to Continue
It will take less than 2 minutes
Continue with Google
Continue with Linkedin
Continue with Twitter