7 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 72
Correct 13
Incorrect 15
Viewed 44

Answers

Guest
Guest
Rashid Alam
Rashid Alam - 1 month ago

Rashid Alam is saying increase the versatility of an overloaded operator is correct answer

Nischal Karki
Nischal Karki - 2 months ago

Nischal Karki is saying allow one class to access an unrelated class is correct answer

Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying allow one class to access an unrelated class is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying allow access to classes whose source code is unavailable is correct answer

Rohan Bhosale
Rohan Bhosale - 4 years ago

Rohan Bhosale from Pune, India is saying allow one class to access an unrelated class is correct answer

Related Questions

Which of the following parameter passing mechanism is/are supported by C++ but not in C?

  • [A] Pass by value
  • [B] Pass by reference
  • [C] Pass by value result
  • [D] All of the above

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

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

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

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

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