Rewrite the snippet using ternary operator: if(a>5)
int y=x+2;
else int y=x-2;
Answers
Answered by
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
Social Sciences,
20 days ago
Social Sciences,
1 month ago
Science,
9 months ago
Science,
9 months ago