Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int p = 12, q = 6, r = 4;
    q != !p;
    r = !!p;
    printf("%d\t%d", q, r);
    }
    1. 4
    2. 6
    3. 12
    4. 6 1
    5. 1 6
Correct Option: D

6 1



Your comments will be displayed only after manual approval.