What are the
at are the values of x and y when the following statements are executed?
int a=63, b=36;
boolean x=(a>b)?a:b;
int y=(a<b)?a:b;
Lia incorrect.
Answers
Answered by
27
Answer:
x=1
As x is a boolean type, it can store only 0 and 1. As the condition is true, 1 is stored in x.
y=36
As y is an integer type, it stores 36
Answered by
2
Answer:
a= boolean value
y=boolean value
it is false as a>b
Similar questions