Question

Consider the following code, assuming that x is an int with an initial value of 12
if(x = 6) {
cout << 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.