Use the condition operator (x?y:z) to write a very compact expression that assigns the maximum of variables n1 and n2 to the variable max. You should assume that any variables you use have been declared and initialized appropriately.
What will be an ideal response?What will be an ideal response?
```
max = (n1>n2) ? n1 : n2;
```
The parentheses are present only for readability. That the > operator has higher precedence makes the parentheses unnecessary.
You might also like to view...
A(n) ________ exists when two or more computers share either hardware or software resources
Fill in the blank(s) with correct word
For an object element, the ________ attribute is used to determine which type of object will be inserted in the Web page:
A) type B) data C) param D) classid
In addition to the nature of the solution, ____ is the other key factor in determining whether recursion or iteration is the better approach.
A. latitude B. elegance C. efficacy D. efficiency
EBCDIC and ASCII both require _____ bits for storage of each character.
A. ?six B. ?eight C. ?twelve D. ?sixteen