The premise of applying this tactic is that you must understand all operators in C language.
Priority
Parentheses are the first member. // brackets operator [] () member operator.->
Second for all single object; // All single object operators, such as ++ -- + (positive)-(negative) pointer operations *&
Multiply the remainder three and add or subtract four; // This "remainder" refers to the remainder operation, that is, %
Shift 5, relation 6; // shift operator: <>>, relation: ><>=
Equals (and) to the seventh row; // that is, =! =
Bitwise AND exclusive or bitwise OR; // these operations are bitwise operations: bitwise AND (&) exclusive or (^) bitwise OR (|)
"Three parts of the World" 80 or 90;
Logical or heel; // logical operator: | and &&
12 and 11; // attention sequence: Priority (|) at the bottom of priority (&&)
When the condition is higher than the value assignment, // the priority of the Three-object operator is exceeded to 13 BITs, which is only equal to the value assignment operator and "," High // note that there are many value assignment operators!
The lowest comma operation level! // The comma operator has the lowest priority.
Since the operator priority of C language is not exactly the same as that of C ++ (mainly adding several operators), this phrase cannot be fully used in C ++. but it should be compatible. You can compare their differences and quickly grasp the priority of C ++!