1.

What will be the output of the following code.

Answer»

int a, b, largest;

cout <<“\n Enter any two numbers:”; cin>> a

>>b;

largest = (a > b)? a:b;

cout << “\n Largest number:” << largest;

return 0;

Output:

Enter any two numbers:

5 10

Largest number:

10



Discussion

No Comment Found