C Review 2

Source: Internet
Author: User
Tags integer division

>

The basic concepts of operators and expressions in C.


    1. Data Object: it refers to the term of the data storage area (the storage area used to save variables or arrays is a data object );

    2. Lvalue: used to identify the name or expression of a specific data object. Because not all data objects can be modified, therefore, "modifiable left value" is used to indicate objects that can be changed. Therefore, the left side of the value assignment operator should be a modifiable left value (for example, the const type cannot be modified );

    3. Right Value: (Rvalue): indicates the amount that can be assigned to the left value that can be modified;

    4. C99 requires the integer division to follow the principle of "toward Zero truncation", that is,-3.8 is written as-3;

    5. When an expression appears, the signed and unsigned short and char types are automatically converted to int, And the unsigned int and float types are converted to double as needed, these transformations are called ascension;

    6. In any operation that contains two data types, both values are converted to a higher level;





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.