Posted By:
2 Jul, 2013 4:34 am PDT

Data types in C++.

What are data types? What are the different data types available?
Attachment:None


When programming, we store the variable in our computer's memory, but the computer have to know the type of the variable to allocate the specific amount of memory to store that variable.

Data types are important because we cannot allocate same amount of memory for storing a number and for storing a string.

 

The data types are: int, float, char, bool, double.

Was it useful?  




Please login to reply to this problem.