6 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

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


Overall Stats

Attempted 104
Correct 14
Incorrect 27
Viewed 63

Answers

Guest
Guest
nabil mohamed
nabil mohamed - 1 month ago

nabil mohamed is saying Default argument cannot be provided for pointers to functions. is correct answer

Preety Pandey
Preety Pandey - 5 months ago

Preety Pandey is saying A default argument cannot be redefined in later declaration. is correct answer

priyanka tile
priyanka tile - 1 year ago

priyanka tile from Nashik, India is saying A function can have all its arguments as default. is correct answer

indhuja indhuja
indhuja indhuja - 1 year ago

indhuja indhuja from Erode, India is saying A function can have all its arguments as default. is correct answer

Sarita Nauriya
Sarita Nauriya - 1 year ago

Sarita Nauriya from Hyderabad, India is saying A default argument cannot be redefined in later declaration. 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.

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

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

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

One of the disadvantage of pass by reference is that the called function may inadvertently corrupt the called data.This is avoided by ?

  • [A] passing pointers
  • [B] declaring the formal parameters constant
  • [C] declaring the actual parameters constant
  • [D] all of above

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.