What does int mean in C language and what is unsigned and signed integer __c language

Source: Internet
Author: User

int is an integer type that defines the type of variable, signed,unsigned int is an unsigned integer type, and it is straightforward to say that a signed unsigned integer is a negative number.
The number of bytes defined by the shape is different depending on the program compiler. In the C language of Class 51 MCU, int represents 2 byte (16 bits), and in the C language of 32-bit ARM processor, int represents 4 byte (32 bits).  (for example, 32-bit XP) defines an int as 4 byte (32 bits). Take a look at the range of values. In a 32-bit system, signed int A, then a range [ -2^31, 2^31-1] is [ -2147483648,2147483647].
So an int definition needs to be aware of several aspects, one is the type, the other is the size range of the stored data.

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.