5 years ago in C++ Functions

Which of the following statement is correct?

[A] Overloaded functions can have at most one default argument.
[B] An overloaded function cannot have default argument.
[C] All arguments of an overloaded function can be default.
[D] A function if overloaded more than once cannot have default argument.
Loading...
Next Question

Overall Stats

Attempted 108
Correct 12
Incorrect 27
Viewed 69

Answers

Guest
Guest
Tooba Mustafa
Tooba Mustafa - 1 month ago

Tooba Mustafa is saying All arguments of an overloaded function can be default. is correct answer

Pranit Karale
Pranit Karale - 2 months ago

Pranit Karale is saying An overloaded function cannot have default argument. is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying Overloaded functions can have at most one default argument. is correct answer

Sarita Nauriya
Sarita Nauriya - 5 months ago

Sarita Nauriya from Hyderabad, India is saying A function if overloaded more than once cannot have default argument. is correct answer

pavithra p
pavithra p - 8 months ago

pavithra p from Bengaluru, India is saying A function if overloaded more than once cannot have default argument. is correct answer

Related Questions

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 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 is correct?

  • [A] Constructors can have default parameters.
  • [B] Constructors cannot have default parameters.
  • [C] Constructors cannot have more than one default parameter.
  • [D] Constructors can have at most five default parameters.

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

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

Static Member function

  • [A] can access any other member function & member variables
  • [B] can access only static member variables & member functions
  • [C] can be only called through object of the class
  • [D] Returns only static data