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.
Computer Science & Information Technology
You might also like to view...
The fill handle can be used to copy content ONLY into adjacent columns
Indicate whether the statement is true or false.
Computer Science & Information Technology
The command rm moves files from one location to another
Indicate whether the statement is true or false
Computer Science & Information Technology