Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int p1 = 3, p2 = 2;
    int p3 = p1 /= p2 %= 2;
    printf("%d\n", p3);
    }
    1. Compilation Error
    2. 3
    3. 2
    4. 1
    5. Floating point exception
Correct Option: E

Floating point exception



Your comments will be displayed only after manual approval.