Ques 1 Operators
Which of the following statements about operator overloading is true?
Ques 2 Operators
What will be the output of the following code?
#include <iostream> using namespace std; int main() { int a = 5, b = 10, c = 0; c = a++ * --b; cout << a << " " << b << " " << c; return 0; }
Ques 3 Operators
What is the correct output of the following code?
#include<iostream>
using namespace std;
int main ()
{
int a=12, b=17, c;
c = (a < b) ? a : b;
cout << c;
return 0;
}
Ques 4 Operators
What will be the output of the following code?
#include<iostream> using namespace std; int main() { int x = 10, y = 0, z; z = x / y; cout << z; return 0; }
Ques 5 Operators
Which of the following operators cannot be overloaded in C++?