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

4 5 5



Your comments will be displayed only after manual approval.