What is the scope of the variable declared in the user defined function?
(a) whole program
(b) only inside the {} block
(c) the main function
(d) header section
I had been asked this question in an international level competition.
This intriguing question originated from Function Declarations in portion Functions, Namespaces & Exceptions in C++ of C++