Home » C++ Programming » Functions » Question
  1. What is the scope of the variable declared in the user defined function?
    1. only inside the {} block
    2. the main function
    3. whole program
    4. All of above
    5. None of these
Correct Option: A

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



Your comments will be displayed only after manual approval.