Examveda

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);
}

A. -2

B. Floating point Exception

C. 1

D. 0

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals