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

Discussion :: C++ - MCQs

  1. What will happen while using pass by reference
  2. A.
    The values of those variables are passed to the function so that it can manipulate them
    B.
    The location of variable in memory is passed to the function so that it can use the same memory area for its processing
    C.
    The function declaration should contain ampersand (& in its type declaration)
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    In pass by reference, we can use the function to access the variable and it can modify it. Therefore we are using pass by reference.


Be The First To Comment