What is the use of datatypes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of datatypes

20th Jul 2019, 5:35 AM
vishnu
vishnu - avatar
2 Answers
+ 10
In computer science and computer programming, a data type or simply type is an attribute of data which tells the compiler or interpreter how the programmer intends touse the data. Most programming languages support common data types of real, integer and boolean. Source: https://en.m.wikipedia.org/wiki/Data_type
20th Jul 2019, 5:47 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 7
The data type of a value (or variable in some contexts) is an attribute that tells what kind of data that value can have.
20th Jul 2019, 6:36 AM
Muaz Ahmad
Muaz Ahmad - avatar