C++ Data types

 C++ Data types

A data type specifies the type of data that a variable can store such as integer, floating, character etc. There are 4 types of data types in C++ language.

Types of Data types in C++

  1. Basic Data Type
  2. Derived Data Type
  3. Enumeration Data Type
  4. User Defined Data Type
Basic Data Type:- These data types are built-in or predefined data types and can be used directly by the user to declare variables. example: int, char, float, bool, etc.

Derived Data type:- The data-types that are derived from the primitive or built-in datatypes are referred to as Derived Data Types. These can be of four types namely: Function. Array. Pointers.


Comments

Popular posts from this blog

C++ Tutorial

My Social Media Account