Vidyalelo
C# Programming · Q5

Variables and Constants in C Sharp

Programming · C# Programming · question 5

Q5

What is the scope of a local variable in C#?

A.
Limited to the file in which it is declared
B.
Limited to the class in which it is declared
C.
Limited to the method in which it is declared
D.
Limited to the block in which it is declared
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board