The difference between the Int16 Int32 Int64 of C #

Source: Internet
Author: User

The Int16 value type represents a signed integer value between 32768 and +32767.

The Int32 value type represents a signed integer value between 2,147,483,648 and +2,147,483,647.

The Int64 value type represents an integer value between 9,223,372,036,854,775,808 and +9,223,372,036,854,775,807.

--------------------------------------------------------------------------------------------------------------- -------------

[1] The short keyword represents an integer data type that stores values based on the size and range shown in the following table.

short-32768 to 327687 ( -2^15 to 2^15-1) signed 16-bit integer system.int16

The [2] int keyword represents an integral type that stores values based on the size and range shown in the following table.

int-2,147,483,648 to 2,147,483,647 ( -2^31 to 2^31-1) signed 32-bit integer System.Int32

[3] The long keyword represents an integral type that stores values based on the size and range shown in the following table.

long-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 ( -2^63 to 2^63-1) signed 64-bit integer System.Int64

The difference between the Int16 Int32 Int64 of C #

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.