6 years ago in C++ Functions

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
Loading...
Next Question

Overall Stats

Attempted 156
Correct 26
Incorrect 36
Viewed 94

Answers

Guest
Guest
Ahmed Alanbagi
Ahmed Alanbagi - 1 month ago

Ahmed Alanbagi from Baghdad, Iraq is saying avoid arguments between classes is correct answer

priyanka tile
priyanka tile - 7 months ago

priyanka tile from Nashik, India is saying increase the versatility of an overloaded operator is correct answer

066 Pravat Kumar Mohapatra
066 Pravat Kumar Mohapatra - 8 months ago

066 Pravat Kumar Mohapatra from Bhubaneswar, India is saying allow one class to access an unrelated class is correct answer

Tooba Mustafa
Tooba Mustafa - 10 months ago

Tooba Mustafa is saying allow access to classes whose source code is unavailable is correct answer

ANSH
ANSH - 11 months ago

ANSH is saying allow one class to access an unrelated class is correct answer

Related Questions

Using turbo C++ library function can ?

  • [A] color any closed figure
  • [B] draw lines and circles
  • [C] write in variety of fonts and sizes
  • [D] all of above

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

Overloaded function

  • [A] are a group of functions,with the same value
  • [B] all have the same number and types of arguments
  • [C] make life simpler for programmers
  • [D] may fail unexpectedly due to stress