Examveda

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: Option D


Join The Discussion

Related Questions on Variables and Constants in C Sharp