What is variable in c#?

Asked 23-Oct-2019
Updated 23-Oct-2019
Viewed 578 times

1 Answer


0

A variable is a name given to a memory. It is used to store data. Its value can be changed and it can be reused many times. It is a way to represent memory location through symbol so that it can be easily identified.
 Type of variable
Boolean type: it is store True or false type value
Integer type: it is store int, byte, and short, long type value
Float type: it is store float and double type value
Nullable type: it is store Nullable type value
Decimal type: it is store decimal type value
Example:
double f; 

decinal d;
int i, j;
bool b;