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.
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.
Many basic data types of Cplusplus can be modified by using one or more of these type modifiers:
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
Post a Comment