Data Types in C++



The data type is a very important concept in C/C++. Every data (constant or variable) is of a certain type. The data type specifies what values that data can have and what operations can be performed on it.
In C/C++, the data types are:


  1. Simple Types

    • The int Type
    • The float and double Types
    • The char Type
    • The pointer Type
    • The bool Type
    • The void Type

  2. Derived Types

    • The Array Type
    • The Structure/Class Type
    • The Enumeration Type

    The int Type


    The float and double Types


    The char Type


    The void Type


Accessibility Options

Color Contrast

Text Size

Text Spacing

Reading Aids