5 years ago in C++ Functions

Which of the following function prototype is perfectly acceptable?

[A] int Function(int Tmp = Show());
[B] float Function(int Tmp = Show(int, float));
[C] Both A and B.
[D] float = Show(int, float) Function(Tmp);
Loading...
Next Question

Overall Stats

Attempted 112
Correct 14
Incorrect 29
Viewed 69

Answers

Guest
Guest
Tooba Mustafa
Tooba Mustafa - 1 month ago

Tooba Mustafa is saying float Function(int Tmp = Show(int, float)); is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying Both A and B. is correct answer

Arjunasor Syiem
Arjunasor Syiem - 7 months ago

Arjunasor Syiem from Shillong, India is saying float Function(int Tmp = Show(int, float)); is correct answer

pavithra p
pavithra p - 8 months ago

pavithra p from Bengaluru, India is saying Both A and B. is correct answer

Ayush Rai
Ayush Rai - 8 months ago

Ayush Rai from Kapurthala Town, India is saying Both A and B. is correct answer

Related Questions

A friend function can be used to ?

  • [A] avoid arguments between classes
  • [B] allow access to classes whose source code is unavailable
  • [C] allow one class to access an unrelated class
  • [D] increase the versatility of an overloaded operator

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.

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.

Which of the following type of function is an ideal candidate for being declared inline ?

  • [A] A function that is small and is not called frequently
  • [B] A function that is small and is called frequently
  • [C] A function that is not small and is not called frequently
  • [D] A function that is not small and is called frequently

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