what is Data Type in C#?
Data type are used to declare a variable.
A data type define size & type of
variable.
Type of Data Type:
1-Primitive Data type:
Those data type that are define in the
compiler are known as primitive data type.
integer
byte
short
long
float
double
char
for a single character
bool for true or false
string
for collection of character
2-Non Primitive Data type:
Every class in OOP language can we treated as
non primitive data type.
We can also create a non primitive data type.
“created by the programmer.”
•Ex: class , struct , enum , interface, delegate, array
No comments:
Post a Comment