Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    double var = 4 % 0 * 1 - 6 / 3;
    printf("%lf", var);
    }
    1. -3
    2. Compilation Error
    3. -2
    4. Floating point Exception
    5. None of these
Correct Option: D

Floating point Exception



Your comments will be displayed only after manual approval.