Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int p = 5;
    int q = ++p + p++ + --p;
    printf("Value of q is %d", q);
    }
    1. Value of q is 19
    2. Value of q is 18
    3. Value of q is 17
    4. Value of q is 5
    5. None of these
Correct Option: A

Value of q is 19



Your comments will be displayed only after manual approval.