What is the ternary operator equivalent to this code snippet?
if(x) y=a; else y=b;
y=a?b:x;
y=if(x?a:b);
y=(x&a)?a:(x&b)?b:0;
y=x?a:b;