C language operator table Memorandum

Source: Internet
Author: User

Operators are arranged from top to bottom according to their priority values. operators in the same row have the same priority.
The second line is all unary operators.

Operator Interpretation

() []->. Parentheses (functions, etc.), arrays, two types of structure member access from left to right

! ~ ++ -- +-* & (Type) sizeof negation, bitwise negation, increment, decrement, positive and negative signs, indirect,

Return address, type conversion, and calculate the size from right to left
*/% Multiplication, division, modulo from left to right
+-Add and subtract from left to right
<> Move left, move right from left to right
<<=>=> Less than, less than or equal to, greater than or equal to, greater than from left to right
=! = Equals, not from left to right
& Bitwise AND left-to-right
^ Bitwise OR left-to-right
| By bit or left to right
& Logic and left-to-right
| Logical or left-to-right
? : Condition from right to left
= + =-= * =/= <<=> = Various values are assigned from right to left.
, Comma (sequence) from left to right

 

US Mission registration! US Mission registration website! Buy a group once a day and enjoy the value of life! Http://www.meituan.com/r/i343002

Http://www.meituan.com/r/i343002

Glutinous rice group purchase registration:

Http://www.nuomi.com/ I /c6HynZn5bk

Http://www.nuomi.com/ I /c6HynZn5bk

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.