List of operators in C Language

Source: Internet
Author: User
Priority Category Same-level operators Operation name Operation count Combination Method
High Force () []-> Parentheses (such as functions and brackets ),
Subscript, field, and member
Binocular (but with single brackets) Left join

Single Camera ! ~ ++ -- + -*&
(Type) sizeof
Non, (by) Non, incremental,
Reduce, take positive number, take negative number,
Get content, get address, convert
Type, measured bytes
Single Camera Right combination. However, if ++ and --
After the variable is applied, it is left-bound.
Arithmetic */% Multiplication, division,
Remainder (only valid for integer type)
Binocular Left join
+- Add, subtract Binocular Left join
Shift <> Left shift, right shift (both for none
Valid integer)
Binocular Left join
Link <<=>=> Less than, less than or equal,
Greater than or equal
Binocular Left join
=! = Equal to, not equal Binocular Left join
Bit logic (non-bit) & Bitwise AND Binocular Left join
^ Bitwise OR Binocular Left join
| By bit or Binocular Left join
Logic (non-bit) && And Binocular Left join
| Or Binocular Left join
Select Value Condition? True: false Conditional Value Tri-category Right combination
Assignment = + =-= * =/= &
^ = | = <=> =
Simple assignment, accumulate,
Subtraction, multiplication, division,
Bitwise AND, bitwise OR, bitwise OR,
Left shift, right shift
Binocular Right combination
Low Sequence , Comma (sequential operation) Binocular Left join

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.