C Fundamentals - Study Mode

[#286] What will be the output of the following C code? #include <stdio.h>
int main()
{
int x = 1, y = 0
x &&= y
printf("%d
", x)
}
Correct Answer

(A) Compile time error

[#287] What will be the output of the following C code? #include <stdio.h>
void main()
{
int a = 5 * 3 % 6 - 8 + 3
printf("%d", a)
}
Correct Answer

(C) -2

[#288] What will be the output of the following C code? #include <stdio.h>
void main()
{
float x = 0.1
if (x == 0.1)
printf("India")
else
printf("Advanced C Classes")
}
Correct Answer

(A) Advanced C Classes

[#289] What will be the output of the following C code? #include <stdio.h>
int main()
{
enum {ORANGE = 5, MANGO, BANANA = 4, PEACH}
printf("PEACH = %d
", PEACH)
}
Correct Answer

(C) PEACH = 5

[#290] What will be the output of the following C code? #include <stdio.h>
void main()
{
double b = 5 % 3 & 4 + 5 * 6
printf("%lf", b)
}
Correct Answer

(C) 2.000000