"Priority statement" of C Operators"

Source: Internet
Author: User

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 ++!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.