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.

Data types

  • Primitive Data Type As Basic Data Type In C++
charcharfloatdouble
  • Derived Data type
Arraystringstructure
  • User Define Data Type In c++
StructureUnionEnumeration
Data TypeMaximumMinimumBytes
Int32767-327682
unsigned int6553502
Short32767-327682
long2147483647-21474836484
char127-1281
unsigned char25501
Float3.4E+383.4E-384
double1.7E+3081.7E-3088

If you like this post, don’t forget to share 🙂

This article is written by our awesome writer
Comments to: Data Type In C++

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

New Dark Mode Is Here

Sign In to access the new Dark Mode reading option.

Join our Newsletter

Get our monthly recap with the latest news, articles and resources.

By subscribing you agree to our Privacy Policy.

Latest Articles

Explore Tutorials By Categories

About

Codeverb is simply an all in one interactive learning portal, we regularly add new topics and keep improving the existing ones, if you have any suggestions, questions, bugs issue or any other queries you can simply reach us via the contact page

Login

Welcome to Codeverb

Ready to learn something new?
Join Codeverb!

Read Smart, Save Time
  •  
    Strength indicator
  •  
  •  
    Log In | Lost Password