-
The below code snippet is equivalent to __________.
x = ~-y;
w = x = y = z;
q = a?b:c?d:e?f:g;
-
-
x = a?b:(c?d:(e?f:g));
q = ~(-y); w = (x = (y = z)); -
x = (x = (y = z));w = ~(-y);
q = a?b:(c?d:(e?f:g)); -
x = ~(-y); w = (x = (y = z));
q = (c?d:(e?f:g)); -
x = ~(-y); w = (x = (y = z));
q = a?b:(c?d:(e?f:g)); - None of these
-
Correct Option: D
Brackets have higher precedence than any other operator. The placement of brackets results in the same result as without putting any bracket.