+ 1
What are data types?
2 ответов
+ 1
Think of data type like kind of great container that contains numbers(integer/float/double) text(phrase/characters).User in many programming language must indicate the data type firstly for each variable he declare.In other lang there are no need to declare explicitly the data type.
0
data types are the type of data that you want to store in a variable.
We can categorize data type into two parts.
Primitive data type: Those are basic data types.
Usually there are 3 basic data types
int - stores integer data.
float /double - stores fraction.
char - stores character.
Abstruct/derived data type: Those data types are made by the help of Primitive data types.
Eg. Array.
Data types determines type & size of the data stored inside a variable.