7 years ago in C++ Functions

Which of the following statement is incorrect?

[A] Default arguments can be provided for pointers to functions.
[B] A function can have all its arguments as default.
[C] Default argument cannot be provided for pointers to functions.
[D] A default argument cannot be redefined in later declaration.
Loading...
Next Question

Overall Stats

Attempted 58
Correct 7
Incorrect 15
Viewed 36

Answers

Guest
Guest
Pranjal Tulsiyan
Pranjal Tulsiyan - 1 month ago

Pranjal Tulsiyan is saying A default argument cannot be redefined in later declaration. is correct answer

Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying A function can have all its arguments as default. is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying A default argument cannot be redefined in later declaration. is correct answer

Rohan Bhosale
Rohan Bhosale - 4 years ago

Rohan Bhosale from Pune, India is saying A function can have all its arguments as default. is correct answer

zemenfes hailemariam
zemenfes hailemariam - 4 years ago

zemenfes hailemariam from Ethiopia is saying Default argument cannot be provided for pointers to functions. is correct answer

Related Questions

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.

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 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.

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 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.