Question

Consider the following code, assuming that x is an integer variable with an initial value of 12:
if (x = 6) {
printf("%i", x);
}
What is the output?
(a) 6
(b) 12
(c) nothing
(d) a syntax error is produced

Answer

This answer is hidden. It contains 3 characters.