Zblog shaping
Operators involved here:! ()+-& amp; & amp/

Priority: ()! /+-& amp; & amp

x=3,y=4,z=5

! (x+y)+z- 1。 & ampy+z/2

! (3+4)+5- 1。 & amp4+5/2

So the expression calculation steps are as follows

! (3+4)+5- 1。 & amp4+5/2 ->! 7+5- 1。 & amp4+5/2

! 7 is 0.

-& gt; 0+5- 1。 & amp4+5/2

5/2 integer divided by integer 2

-& gt; 0+5- 1。 & amp4+2

-& gt; 4&6

Logical operation &; & amp

So it is 1.

C++ operator priority list (very detailed):/aqzeroarchive/2006/06/08/8284.html.