Saturday, 25 February 2017

GATE EXAM PREPARATION IN "C" - What is scope of a variable? How are variables scoped in C?

What is scope of a variable? How are variables scoped in C?

Ans: Scope of a variable is the part of the program where the variable may directly be accessible. In C, all identifiers are lexically (or statically) scoped. 

No comments:

Post a Comment