Discussion Forum : Function Declarations
Question -

What is the scope of the variable declared in the user definied function?

Options:
A .  whole program
B .  only inside the {} block
C .  both a and b
D .  none of the mentioned
Answer: Option B

The variable is valid only in the function block as in other.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

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