Variables in C# programming

In  any programing language including C#, variables are the memory space in computer where data can be stored. A variable in C# programming is defined by three main features: name, type and value (optional). Let us take an example:

int var = 1;

In above example, var is the name of variable, int is the type of variable var and 1 is the value stored in memory location.

Pages