Examveda

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

A. Limited to the block in which it is declared

B. Limited to the method in which it is declared

C. Limited to the class in which it is declared

D. Throughout the entire program

Answer: Option D


Join The Discussion

Related Questions on Variables and Constants in C Sharp