Learn Data Types in C++

Data Types in C++


While composing a program in any language, you will need to apply several variables to stock all those information. Variables are emptiness but supplied memory locations to stock the values. It means that when you establish a variable you supply some spaces in the memory.
data type in c++


You maybe like to stock the information of various data types like integer, floating points, double floating points, character, wide character, boolean, etc. Depending on the data types of variables, the operating system assigned memory and make decisions about what can be stocked in the supply memory.

Primitive Build-it Types

C++ allows the programmer a lot of classification of built-in as well as user-defined data types. The following table lists seven basic data types in C++:

Type Keyword
Boolean bool
Character char
Floating point float
Double floating point double
Integer int
Valueless void
Wide character wchar_t

Many basic data types of Cplusplus can be modified by using one or more of these type modifiers:
  • signed
  • unsigned
  • short
  • long
The table below shows the types of variables, how much that memory takes to store the value in it, and what is the minimum and maximum value that can be stored in such types of variables.

Learn more about C++, click here to view  the table contents

Comments

Popular posts from this blog

ភាសាកម្មវិធី C++៖ សង្ខេប

សំណួរ និងលំហាត់៖ ភាពខុស​គ្នា​រវាងភាសា C និងភាសា C++

How to download and install Cambridge Advanced Learner's Dictionary_Fourth Edition-CALD4