Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int num = 7.5 % 3;
    printf("Value of x is %d", num);
    }
    1. Value of num is 7.5
    2. Value of num is 3
    3. Value of num is 2.0
    4. Compilation Error
    5. None of these
Correct Option: D

Compilation Error



Your comments will be displayed only after manual approval.