Google News
logo
CPP - Quiz(MCQ)
What is the scope of the variable declared in the user defined function?
A)
whole program
B)
the main function
C)
header section
D)
only inside the {} block

Correct Answer :   only inside the {} block


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

Advertisement