+ 2
what is a data type?
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.
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.)
- 1
like a=5