⟩ in C++, an object can be returned as argument a) false b) true
b) true
b) true
The output of this program? #include <iostream> using namespace std; ostream & operator<<(ostream & i, int n) { return i; } int main() { cout << 5 << endl; cin.get(); return 0; } a) 5 b) 6 c) error d) runtime error
Operator overloading is a) making c++ operator works with objects b) giving new meaning to existing operator c) making new operator d) both a & b
How to declare operator function? a) operator operator sign b) operator c) operator sign d) None of the mentioned
Pick the other name of operator function. a) function overloading b) operator overloading c) member overloading d) None of the mentioned
Which of the following statements is NOT valid about operator overloading? a) Only existing operators can be overloaded. b) Overloaded operator must have at least one operand of its class type. c) The overloaded operators follow the syntax rules of the original operator. d) None of the mentioned
Explain what is NULL pointer and void pointer and what is their use?
What is void pointer using C++?
What is const reference?
Can you please explain the difference between an inspector and a mutator?
When we use this pointer?