Operational symbols in the C language

Source: Internet
Author: User
Tags arithmetic operators logical operators

the symbol in C language--The specific usage ask NiangTypes of OperatorsThe language operators can be divided into the following categories:1 Arithmetic operatorsused for various numerical operations. Including plus (+), minus (-), multiply (*), except (/), balance (or modulo operation,%), self-increment (+ +), self-reduction (--) a total of seven. 2. Relational operatorsused for comparison operations. Include greater than (>), less than (<), equals (= =), greater than or equal (>=), less than Equals (<=), and not equal to (! =) Six. 3. Logical Operatorsused for logical operations. Included with (&&), or (| |), non-(!) Three kinds. 4. Bitwise manipulation OperatorsThe number of participating operations is calculated by bits. There are six kinds of bits and (&), bit or (|), bit non (~), bit xor (^), left (<<), right Shift (>>). 5. Assignment Operatorsfor assignment operation, there are 11 kinds of three classes: simple Assignment (=), compound arithmetic Assignment (+=,-=,*=,/=,%=) and compound bit operation Assignment (&=,|=,^=,>>=,<<=). 6. Conditional OperatorsThis is a three-mesh operator for conditional evaluation (?:). 7. Comma operatorused to combine several expressions into an expression (,). 8. Pointer Operatorsused to fetch the contents (*) and Fetch address (&) Two kinds of operations. 9. The number of bytes operatorthe number of bytes (sizeof) used to calculate the data type. 10. Special Operatorswith parentheses (), subscript [], member (→,.) and several others.

Operational symbols in the C language

Related Article

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.