Sail E0 Webinar
Question
A variable declared in a function can be used in main?
Options:
A .  True
B .  False
C .  True if it is declared static
D .  None of the mentioned.
Answer: Option B


Since the scope of the variable declared within a function is restricted only within that function,
the above statement is false.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers