5 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 166
Correct 23
Incorrect 51
Viewed 92

Answers

Guest
Guest
Tooba Mustafa
Tooba Mustafa - 1 month ago

Tooba Mustafa is saying a variable is created in function to hold the argument value is correct answer

Saisha Shetty
Saisha Shetty - 2 months ago

Saisha Shetty is saying a temporary variable is created in the calling program to hold arguments value is correct answer

ANSH
ANSH - 2 months ago

ANSH is saying a temporary variable is created in the calling program to hold arguments value is correct answer

Mohamed Ibrahim
Mohamed Ibrahim - 4 months ago

Mohamed Ibrahim from Palestine is saying a variable is created in function to hold the argument value is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying a temporary variable is created in the calling program to hold arguments value is correct answer

Related Questions

What is true about inline functions ?

  • [A] It's a compulsion on the compiler to make function inline
  • [B] It's a request to the compiler to make te function inline
  • [C] It's the indication to the compiler that the function is recursive
  • [D] It's the indication to the compiler that the function is member function

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 statement will be correct if the function has three arguments passed to it?

  • [A] The trailing argument will be the default argument.
  • [B] The first argument will be the default argument.
  • [C] The middle argument will be the default argument.
  • [D] All the argument will be the default argument.

Which of the following statement is correct?

  • [A] C++ enables to define functions that take constants as an argument.
  • [B] We cannot change the argument of the function that that are declared as constant.
  • [C] Both A and B.
  • [D] We cannot use the constant while defining the function.

A friend function

  • [A] is declared as a friend & defined elsewhere in the program
  • [B] is always an inline function
  • [C] created objects without initialization
  • [D] May be a static member function of the class