Multiple choice technology programming languages

What will be output if you will Execute following c code? #include int main() {     int num,a=5;     num=-a--;     printf("%d  %d",num,a); }

  1. 5,4

  2. -4,4

  3. -5,4

  4. -4,5

  5. Compilation Error

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The post-decrement operator a-- returns the original value of a (which is 5) and then decrements a to 4. Thus, num = -5. The printf statement outputs num followed by a, resulting in -5 4.