Integer Data Type

Source: Internet
Author: User

In C #, the integer types include sbyte, byte, Char, short, ushort, Int, uint, long, And ulong.

The following table describes the value ranges of various integer types.

Type value range Length

Sbyte-128 ~ 127 signed 8-digit integer

Byte 0 ~ 255 unsigned 8-digit integer

Char U + 0000 ~ U + FFFF unicode16 characters

Short-32768 ~ 32767 signed 16-digit integer

Ushort 0 ~ 65535 unsigned 16-digit integer

INT-2147483648 ~ 2147483647 signed 32-bit integer

Uint 0 ~ 4294967295 unsigned 32-bit integer

Long-9223372036854775808 ~ 9223372036854775807 signed 64-bit integer

Ulong '0 ~ 18446744073709551615 unsigned 64-bit integer

Byte arrays are commonly used in byte streams, which store 8-bit, 1-bit, and 0 data. The integer type is very simple and the value range is different. The rest is roughly the same. All numeric values are value types.

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.