Which type value we want store in variable it depends by data type in programming languages such as integer,character,float .
C++ provides a rich set of data types. Through the use of structures, unions, enum, and class types, the programmer can extend the language with new types.
you will use a new data type called a structure.
In an array, all the elements are of the same type and are numbered. In a structure, each element, or field, is named and has its own data type.
- Primitive Data Type As Basic Data Type In C++
- Derived Data type
- User Define Data Type In c++
If you like this post, don’t forget to share 🙂