Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - If the initial value of plastic variable I is 5, what is the output of printf ("%d, %d,% d,% d \ n ",i, i-, -i, i) statement?
If the initial value of plastic variable I is 5, what is the output of printf ("%d, %d,% d,% d \ n ",i, i-, -i, i) statement?
printf("%d,%d,%d,%d\n ",I,i -,- i,I);

Different compilers have different directions, usually from right to left.

I, I-I, I ...

First, the rightmost calculation: I = 5;;

Then calculate -I: (-I) = 4, and i=4.

........i - :(i - )=4,i=3

........i:i=3

The answer is 3445.