C++primer4 Chapter2 variables and basic Types 2.1

Source: Internet
Author: User

2.1 Basic built-in types

Arithmetic type:

Minimum storage space

BOOL Boolean type

Char character 8-bit

wchar_t Wide-character 16-bit

Short 16-bit

int integer 16-bit

Long 32-bit

Float single-precision floating-point 6-bit valid digits

Double dual-precision floating-point 10-bit valid digits

Long double extended precision floating-point 10-bit valid digits

void type: Used as return type for no return value function

2.11 Integral type

An arithmetic type that represents integers, characters, and Boolean values is called an integer.

Signed integral type signed, unsigned integer unsigned

2.12 Floating-point type

C++primer4 Chapter2 variables and basic Types 2.1

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.