0

++ in C. Kindly justify the output

Confusion in output of ++ int i, j, k ; i=2; j=++i + ++i; i=2 ; k=++i + ++i + ++i; printf("%d %d", j, k); Output I got: 8 13

17th Dec 2019, 1:37 AM
Sandeep Sood
Sandeep Sood - avatar
1 Antwort
0
Must be 7 and 12
17th Dec 2019, 4:25 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar