Tip:A–D to answerE for explanationV for videoS to reveal answer
What is the scope of the variable declared in the user-defined function?
- A.
in whole program
- B.
only inside the {} block
(Correct Answer) - C.
Both 1 and 2
- D.
None of these
Correct Answer: only inside the {} block
Explanation
Answer:
only inside the {} block.
Explanation:
The variable is valid only in the function block as in other.
Explanation
Answer:
only inside the {} block.
Explanation:
The variable is valid only in the function block as in other.