codeGK
Code it ALL
Local Variable in C# - CodeGK

♦ Local Variable in C#

♣ Example2: Local Variable in C#

The variable which can be accessed from a particular part of the code is called Local Variable.
These variable are so-called having Local Scope, that is, the scope of the variable is limited to a particular part of the code.
In this example, Local Variable is illustrated.
Example
Input:
Output: