0% found this document useful (0 votes)
1 views2 pages

CPP Data Types Chart

The document provides a comprehensive overview of C++ data types, categorizing them into basic, modified, derived, user-defined, and abstract/STL types. It lists fundamental types like int, float, and char, as well as advanced structures such as classes and templates. The total number of core data types is around 25, which can exceed 50 with the inclusion of STL and object-oriented programming, and can be unlimited through user-defined types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

CPP Data Types Chart

The document provides a comprehensive overview of C++ data types, categorizing them into basic, modified, derived, user-defined, and abstract/STL types. It lists fundamental types like int, float, and char, as well as advanced structures such as classes and templates. The total number of core data types is around 25, which can exceed 50 with the inclusion of STL and object-oriented programming, and can be unlimited through user-defined types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

C++ Data Types Chart

1. Basic / Fundamental Data Types

- int - Integer values

- float - Decimal values (single precision)

- double - Decimal values (double precision)

- char - Single character

- bool - Boolean (true/false)

- void - No value (used in functions)

- wchar_t - Wide character

2. Modified Data Types

- short int - Small integers

- long int - Large integers

- unsigned int - Positive integers only

- signed int - Both positive and negative (default)

- unsigned char - Positive characters only

- signed char - Signed characters

- long double - Very large decimal values

3. Derived Data Types

- Array - Collection of same type values

- Pointer - Stores memory address

- Function - Block of code that performs a task

- Reference - Alias to another variable

4. User-Defined Data Types

- struct - Group of different variables

- class - Blueprint for creating objects

- union - Share memory between variables

- enum - Enumerated values

- typedef - Type alias

- namespace - Grouping code under a name


C++ Data Types Chart

5. Abstract / STL Data Types

- string - Text using std::string

- vector - Dynamic array (resizable)

- map - Key-value pair container

- set - Unique values container

- list - Doubly linked list

- queue - FIFO structure

- stack - LIFO structure

- pair - Combine two values together

Summary

- Core Data Types: ~25

- With STL and OOP: 50+

- Unlimited via user-defined types

You might also like