What is the output of the following code?
int main() {
int x = 5, y = 10;
if (x == 5 && y == 10) {
printf(“True”);
} else {
printf(“False”);
}
return 0;
A) True
B) False
C) Neither True nor False
D) Compilation Error
Answer: A
Explanation: The code uses the && operator to check if both x and y are equal to certain values. Since both conditions are true, the code inside the if statement is executed, and the output is True.