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

What is data types

Data types is what kind of data you store:String :a sequence of character "abcde " integer : a number 3,4,2 Float:a not complete number 1.2 , 1.0 2.0, 3.333334 Data types 1) Int 2)Double 3)Char 4)String

28th Mar 2021, 7:43 AM
Priyanka Gore
Priyanka Gore - avatar
1 Answer
0
Data types is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data. 1) int int full form was integer means those number you see daily life 1,2,3,4,5. 2) Double Double was number like integer but it contains decimal places, 1.2, 2.345, 3.142. 3) Char Char is a single character, ex: A , B , C, D. 4) String When 2 or more characters combine into a sentence, it called string, ex: Hi, im robin, good luck, welcome. For more references, please visit: https://en.wikipedia.org/wiki/Data_type
28th Mar 2021, 7:55 AM
Tzion
Tzion - avatar