What are the values of x and y when the following statements are executed? [2] int a=63 ,b=36;
Boolean x=(a<b)?true:false;
int y=(a>b)?a:b;
Answers
Answered by
8
Value of x is false
Value of y is 63
Explanation:
Ternary operators logic is the same as if else statements.
Answered by
2
Answer:
Value of x is false
Value of y is 63
Explanation:
Ternary operators logic is the same as if else statements.
hope it's helps you
Similar questions