What are data types? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What are data types?

30th Aug 2020, 6:29 PM
Miti
2 Answers
+ 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.
30th Aug 2020, 8:32 PM
HBhZ_C
HBhZ_C - avatar
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.
30th Aug 2020, 7:03 PM
Bibhash Ghosh
Bibhash Ghosh - avatar