Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int p = 2, q = 1;
    p &&= q;
    printf("%d\n", p);
    }
    1. Compilation Error
    2. 2
    3. 1
    4. Runtime Error
    5. None of these
Correct Option: A

Compilation Error

main.c: In function ‘main’:
main.c:5:13: error: expected expression before ‘=’ token
p &&= q;



Your comments will be displayed only after manual approval.