Give the output for:
char x= 'A': int m=(x== 'a') ? 'A' : 'a'; System.out.println("m="+m);
Answers
Answered by
2
Answer:
Explanation:
Ternary Operation...
(x==a)[not true]
If its not true the value after (:) will be applicable to m which is (a)...
Therefore, [m=a || m=9
MARK AS BRAINLIEST
Similar questions