+ 2

what is a data type?

13th Oct 2016, 2:01 AM
sagar patel
sagar patel - avatar
3 Answers
+ 5
data type means the type of data u are operating on. in c# we have several data types: we have the numbers, String, boolean, characters etc in the numbers we have: int for integer type, double for long decimal numbers, short for short integers, long for longer integers, float for shorter decimal numbers etc... so, the data type is mainly used to declare a variable that holds a particular type of data for u.
13th Oct 2016, 9:00 PM
Maduekwe Ebuka Collins
Maduekwe Ebuka Collins - avatar
0
It is fact that we always use variables to store the data. Now, DataType means what type of data your are going to store in a particular variable. (Data type decides the nature of a variable that it can store this type of value only.)
18th Nov 2016, 6:43 AM
Jai Verma
Jai Verma - avatar
- 1
like a=5
13th Oct 2016, 3:25 PM
Mohammad Khammar
Mohammad Khammar - avatar