Q. What will be the output?
Code:#include <stdio.h>
int main() {
int x = 1;
if (x = 0)
printf("Zero");
else
printf("Not Zero");
return 0;
}
β
Correct Answer: (B)
Not Zero
Explanation: x = 0 assigns 0, which is false, so 'Not Zero' is printed.