6 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

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 128
Correct 15
Incorrect 27
Viewed 86

Answers

Guest
Guest
Jaspher Taruc
Jaspher Taruc - 6 months ago

Jaspher Taruc is saying The first argument will be the default argument. is correct answer

Ahmed Alanbagi
Ahmed Alanbagi - 7 months ago

Ahmed Alanbagi from Baghdad, Iraq is saying All the argument will be the default argument. is correct answer

Chafei Wael
Chafei Wael - 1 year ago

Chafei Wael from Montrouge, France is saying All the argument will be the default argument. is correct answer

priyanka tile
priyanka tile - 1 year ago

priyanka tile from Nashik, India is saying The trailing argument will be the default argument. is correct answer

066 Pravat Kumar Mohapatra
066 Pravat Kumar Mohapatra - 1 year ago

066 Pravat Kumar Mohapatra from Bhubaneswar, India 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

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

A static function

  • [A] should be called when an object is destroyed
  • [B] is closely connected with an individual object of a class
  • [C] can be called using the class name and function
  • [D] is used when a dummy object must be created

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

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