Scope of Variables in C#
Scope of Variable is the region of code within which the variable can be accessed. It depends on the type of the variable and place of its declaration. In C#, there are several types of variables:
class Test { static int p; int n; void display(int x, ref int y, out int z, int [] a) { int q=25; ...... ...... } }