Computer Science, asked by jainanisha947, 6 months ago

char c='a'
char x=c=='A'?'x':'y';
System.out.println(x);

Answers

Answered by manavjotsingh343
0

Answer:

y

Explanation:

because condition is false

Answered by supriyasahu
0

Answer:

Output will be y.

Explanation:

because in char c small 'a' has been stored but in the conditional statement it is comapred with capital 'A' so it will execute the else part that is 'y'.

HOPE THIS WILL HELP YOU:)

Similar questions