C language operator number

Source: Internet
Author: User

Level 1 Priority left combination

()Parentheses

[] Subscript operator

-> Pointer to struct member operators

. Struct member Operator

Level 2 priority right combination

! Logical non-Operator

~ Bitwise Inverse Operator

++ Auto-increment operator

-- Auto-subtraction Operator

-Minus sign Operator

(Type) type conversion Operator

* Pointer Operators

& Addresses and operators

Sizeof length Operator

Level 3 priority left combination

* Multiplication Operator

/Division Operator

% Remainder Operator

Level 4 priority left combination

+ Addition Operators

-Subtraction Operator

Level 5 priority left combination

<Left shift operator

> Right shift operator

Level 6 priority left combination

<, <=,>,> = Relational operators

Level 7 Priority left combination

= Equals Operator

! = Not equal to operator

Level 8 priority left combination

& Bitwise AND operator

Level 9 Priority left combination

^ Bitwise OR operator

Level 10 priority left combination

| Bitwise OR operator

Level 11 priority left combination

& Logic and operators

Level 12 priority left combination

| Logic or operator

Level 13 priority right combination

? : Conditional Operators

Level 14 priority right combination

= + =-= *

==%=

>=< =

& Amp; = ^ = | = all value assignment operators

Level 15 priority left combination

, Comma Operator

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.