Ques 1 Operators
Which of the following operators can be overloaded globally, but not as class members?
Ques 2 Operators
What will be the output of the following code?
#include<iostream> using namespace std; int main() { int x = 7, y = 3, z = 2; int res = x > y && y++ > z || ++z < x; cout << y << " " << z << " " << res; return 0; }
Ques 3 Operators
What will be the output of the following code?
#include<iostream> using namespace std; int main() { int a = 5, b = 5; cout << (a++ == b--) << " " << a << " " << b; return 0; }
Ques 4 Operators
Which of the following is the correct way to declare a friend function for overloading an operator in C++?