Multiple choice

What would be the value of variables n and m in the following C code? int n, m; n = - 10; m = - n + 5; printf(!!!^!!!n = %dnm=%d!!!^!!!,n,m);

  1. n = - 10 m = - 5

  2. n = - 10 m = Garbage value

  3. n = - 10 m = 15

  4. n = 10 m = 5

  5. Compiler error

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

This is the correct option as the value of n = - 10 is already assigned, and m = - ( - n) + 5 will give the resultant value 15.