Having a hard time interpreting this code
I am going over questions from tests from previous semester of what the test I am going to take might be like and one question I do not understand is this:
What is the output of the following code segment?
Code:
#include <stdio.h>
int main(void);
{
int a=6, b=4;
if (b = 0)
printf("One\n");
else if (a = 2)
printf("Two\n");
else if (a*b/5 > 4)
printf("Three\n");
else
printf("Four\n");
}
when I run it in the compiler, the answer is "Two." How do you interpret this because I do not understand how the answer is "Two?"