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

40



Your comments will be displayed only after manual approval.