C-language operator precedence, like Lion Tiger Leopard Memory method

Source: Internet
Author: User

Remember when you were a child of the beast Chess, mice can eat elephants, haha. --like lion Tiger Leopard, dog Wolf Cat Mouse.

We divide the C language operator level 15 priority into 8 groups, each of which takes a representation. As follows:

Why do you do this:

1. Human beings are suitable for memory of 10 or less, and 15 are not well remembered.

2. Of the 15 priorities, some do not create disputes, such as the 1th and 2 priorities, a[3]++, which is natural, they can be merged, easy to remember. Also, do you write an expression such as a < b = = c > d? Therefore, relational operators can also be merged. The most common dispute is a & 7 = = 3, this time, because the tiger to eat leopard, so to protect the leopard, (A & 7) = = 3.

3.8 numbers better memory than 10 digits. Although 10 binary is more suitable for counting than 8, the memory should be 8 digits more suitable for memory.

4. Everyone likes these 8 kinds of animals.

C-language operator precedence, like Lion Tiger Leopard Memory method

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.