h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Define Variable Scopes


  •  A variable scope simply is something, which decides the lifetime of the variable.
  •  The variable scope depends on the place, where the variable is declared in the program.

 For example,
     a variable is declared in if block, is available only within the if block itself.  To have a better idea on this, we discuss about all available scopes in C#.