Post Increment with substitution

后端 未结 2 1934
北恋
北恋 2021-01-29 11:26

I have a question here already of my own but I want to extend it Post increment with example

char a = \'D\';
int b = 5;
System.out.println(a++/b+--a*b++);
         


        
2条回答
  •  -上瘾入骨i
    2021-01-29 12:08

    Step 4: (68/6+68*5) its your wrong! b is 5 in all positions in the calculation instead of it's value 6.

    so we have:

    Step 4: (68/5+68*5) = (13+340)=353

提交回复
热议问题