7 years ago in C++ Functions

When an argument is passed by reference

[A] a variable is created in function to hold the argument value
[B] the function cannot access the argument value
[C] a temporary variable is created in the calling program to hold arguments value
[D] None of these
Loading...
Next Question

Overall Stats

Attempted 82
Correct 10
Incorrect 23
Viewed 49

Answers

Guest
Guest
Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying the function cannot access the argument value is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying the function cannot access the argument value is correct answer

Rohan Bhosale
Rohan Bhosale - 4 years ago

Rohan Bhosale from Pune, India is saying a temporary variable is created in the calling program to hold arguments value is correct answer

akash patil
akash patil - 4 years ago

akash patil from India is saying a temporary variable is created in the calling program to hold arguments value is correct answer

Dhayanand Selvaraj
Dhayanand Selvaraj - 4 years ago

Dhayanand Selvaraj from India is saying a temporary variable is created in the calling program to hold arguments value is correct answer

Related Questions

One of the disadvantage of pass by reference is that the called function may inadvertently corrupt the called data.This is avoided by ?

  • [A] passing pointers
  • [B] declaring the formal parameters constant
  • [C] declaring the actual parameters constant
  • [D] all of above

Dividing a program into functions

  • [A] is the key to object oriented programming
  • [B] makes the program easier to conceptualize
  • [C] makes the program run faster
  • [D] both (B) and (C)

Which of the following function / type of function cannot be overloaded?

  • [A] Member function
  • [B] Static function
  • [C] Virtual function
  • [D] Both B and C

Which of the following function declaration is/are incorrect?

  • [A] int Sum(int a, int b = 2, int c = 3);
  • [B] int Sum(int a = 5, int b);
  • [C] int Sum(int a = 0, int b, int c = 3);
  • [D] Both B and C are incorrect.
  • [E] All are correct.

Which of the following type of function is an ideal candidate for being declared inline ?

  • [A] A function that is small and is not called frequently
  • [B] A function that is small and is called frequently
  • [C] A function that is not small and is not called frequently
  • [D] A function that is not small and is called frequently