Q. What is the output of this program?
Code:public class ternary_operator_Example
{
public static void main(String args[])
{
int a = 5;
int b = ~ a;
int c;
c = a > b ? a : b;
System.out.print(c);
}
}
β
Correct Answer: (D)
5