Home » C++ Programming » Overloading » Question
  1. What will happen while using pass by reference
    1. The location of variable in memory is passed to the function so that it can use the same memory area for its processing
    2. The function declaration should contain ampersand (& in its type declaration)
    3. The values of those variables are passed to the function so that it can manipulate them
    4. All of above
    5. None of these
Correct Option: A

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.



Your comments will be displayed only after manual approval.