Integer Type C + +

Source: Internet
Author: User

Data type

Defining identifiers

Number of bytes

Range of values

Range of values

Short-integer

short [int]

2 (16-bit)

-32768~32767

-215~215-1

Integral type

[Long] int

4 (32-bit)

-2147483648~2147483647

-231~231-1

Long integer type

long [int]

4 (32-bit)

-2147483648~2147483647

-231~231-1

Super Long Integer type

Long Long [int]

8 (64-bit)

-9223372036854775808~9223372036854775807

-263~263-1

Unsigned integral type

unsigned [int]

2 (16-bit)

0~65535

0~216-1

unsigned short integer type

unsigned short [int]

2 (16-bit)

0~65535

0~216-1

unsigned long integer type

unsigned long [int]

4 (32-bit)

0~4294967295

0~232-1

Unsigned super-long integer

Unsigned Long Long

8 (64-bit)

0~18446744073709551615

0~264-1

Integer Type 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.