adplus-dvertising
frame-decoration

Question

What will happen while using pass by reference

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

Answer: (b).The location of variable in memory is passed to the function so that it can use the same memory area for its processing

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will happen while using pass by reference

Similar Questions

Discover Related MCQs

Q. When our function doesn’t need to return anything means what will we use/send as parameter in function?

Q. What are the advantages of passing arguments by reference?

Q. If the user didn’t supply the value, what value will it take?

Q. Where can the default parameter be placed by the user?

Q. Which value will it take when both user and default values are given?

Q. What we can’t place followed by the non-default arguments?

Q. If we start our function call with default arguments means, what will be proceeding arguments?

Q. What is the default return type of a function ?

Q. Which header file is used to pass unknown number of arguments to function?

Q. How can you access the arguments that are manipulated in the function?

Q. What is the maximum number of arguments or parameters that can be

Q. Which header file should you include if you are to develop a function that can accept variable number of arguments?

Q. What will initialize the list of arguments in stdarg.h header file?

Q. To which does the function pointer point to?

Q. What we will not do with function pointers?

Q. What is the default calling convention for a compiler in c++?

Q. What are the mandatory part to present in function pointers?

Q. which of the following can be passed in function pointers?

Q. What is meaning of following declaration?
int(*ptr[5])();

Q. Which keyword is used to define the macros in c++?