Basic arithmetic of C language

Source: Internet
Author: User

There are 34 types of operators included in the C language:

I. Arithmetic operations

1. Addition operation: +, not only can be used to do addition, can also be used to denote a positive sign: for example, +1,+10, etc.;

2. Subtraction operation:-not only can be used to do subtraction, also can be used to indicate negative numbers: for example, -1,-19, etc.;

3. Multiplication: *, the symbol is no longer commonly used in mathematics, but in the computer *.

4. Division operation:/, symbols are no longer commonly used in mathematics?, but/, this is to be differentiated from \, when/appear two times to become//when the programming of the comments; In addition, in programming, integers are divided by integers or integers, 1/2=0, rather than one-second.

Basic arithmetic of C language

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.