What will be the output of the following C code?
#include <stdio.h>
void main()
{
double b = 3 % 0 * 1 - 4 / 2;
printf("%lf", b);
}
#include <stdio.h>
void main()
{
double b = 3 % 0 * 1 - 4 / 2;
printf("%lf", b);
}A. -2
B. Floating point Exception
C. 1
D. 0
Answer: Option B

Join The Discussion