10. Variable Scoping MCQ
Variable Scoping Question 1
Variable Scoping Question 2
Which variable has the longest scope?
Variable Scoping Question 3
Choose the correct option
Both are same
Scope of c is till the end of the main function in Program 2
In Program 1, variables a, b and c can be used anywhere in the main function whereas in Program 2, variables b and c can be used only inside their respective blocks
None of the mentioned
Last updated