7 years ago in C++ Functions

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

Overall Stats

Attempted 59
Correct 23
Incorrect 4
Viewed 32

Answers

Guest
Guest
Shivangi Gupta
Shivangi Gupta - 1 month ago

Shivangi Gupta is saying is declared as a friend & defined elsewhere in the program is correct answer

Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying is declared as a friend & defined elsewhere in the program is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying is declared as a friend & defined elsewhere in the program is correct answer

Rohan Bhosale
Rohan Bhosale - 4 years ago

Rohan Bhosale from Pune, India is saying is declared as a friend & defined elsewhere in the program is correct answer

Neyah Deshmukh
Neyah Deshmukh - 4 years ago

Neyah Deshmukh from India is saying is declared as a friend & defined elsewhere in the program is correct answer

Related Questions

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);

What is true about inline functions ?

  • [A] It's a compulsion on the compiler to make function inline
  • [B] It's a request to the compiler to make te function inline
  • [C] It's the indication to the compiler that the function is recursive
  • [D] It's the indication to the compiler that the function is member function

The library function exit() causes an exit from ?

  • [A] The loop in which it occurs
  • [B] The block in which it occurs
  • [C] The function in which it occurs
  • [D] The program in which it occurs

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

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.