Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. What is the scope of the variable declared in the user definied function?
  2. A.
    whole program
    B.
    only inside the {} block
    C.
    both a and b
    D.
    none of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment