Report Bug
Qus : Which variable has local scope?
Qusकौन-सा variable local scope में होता है?

A. Declared outside all functions
B. Declared in loop
C. Declared using global
D. Declared inside a function


Solution
D. Declared inside a function



Explanation
A variable created inside a function normally belongs to that function's local scope.

Function के अंदर बनाया गया variable सामान्यतः उसी function के local scope में होता है।



Report Bug