Computer Science, asked by philipsjoshua642, 1 month ago

Rewrite the snippet using ternary operator: if(a>5)
int y=x+2;
else int y=x-2;

Answers

Answered by sarthakgamer651
2

Answer:

d. None; What is the result of the following in Java statement, ... c. 55 d. None; int m, p; m = 5; p = 0; p = m-- + --m; The output will be: a. ... The ternary operator deals with three operands .

Explanation:

Similar questions