7 years ago in C++ Functions

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.
Loading...
Next Question

Overall Stats

Attempted 56
Correct 8
Incorrect 14
Viewed 34

Answers

Guest
Guest
Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying The first argument will be the default argument. is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying The middle argument will be the default argument. is correct answer

Rohan Bhosale
Rohan Bhosale - 4 years ago

Rohan Bhosale from Pune, India is saying The first argument will be the default argument. is correct answer

Neyah Deshmukh
Neyah Deshmukh - 4 years ago

Neyah Deshmukh from India is saying The first argument will be the default argument. is correct answer

Muhammad Asghar
Muhammad Asghar - 4 years ago

Muhammad Asghar from Vehari, Pakistan is saying All the argument will be the default argument. is correct answer

Related Questions

Which of the following parameter passing mechanism is/are supported by C++ but not in C?

  • [A] Pass by value
  • [B] Pass by reference
  • [C] Pass by value result
  • [D] All of the above

The signature of a function is its ..... ?

  • [A] Function code
  • [B] Prototype
  • [C] Call
  • [D] Parameter list

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.

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

Overloaded function

  • [A] are a group of functions,with the same value
  • [B] all have the same number and types of arguments
  • [C] make life simpler for programmers
  • [D] may fail unexpectedly due to stress