Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int p = 3;
    if (4 |(p = 4))
    printf("p is %d\n", p);
    else
    printf("%d\n", p);

    }
    1. p is 3
    2. Compilation Error
    3. Runtime Error
    4. Garbage value
    5. p is 4
Correct Option: E

p is 4



Your comments will be displayed only after manual approval.