Live Dead title 4: Find the value of C?

      提问:
 int a = 5;
 int b = 4;
 int c = a++ - --b*++a / b-->>2 % a--;

c = ?

Problem-solving ideas:

Wow Kaka ,,, what circumstances? ? ? ? ? ?
Ah, met trouble is a good thing, but, first egg pain, no - no, is the first calm.

Mainly on the form of use and operator precedence operator, and a negative number in the computer. Then there is the step by step unlock the ball.
Here Insert Picture Description
answer:

int c = -1;

Here Insert Picture DescriptionFrom "Crazy java handout" Second Edition

Released five original articles · won praise 3 · Views 244

Guess you like

Origin blog.csdn.net/qq_40924992/article/details/105036515