Home / MCQ Bank / Computer
Computer Classes And Objects In C Plus Plus

What is the purpose of using friend functions in C++?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • To allow access to private and protected members of a class from outside the class

Related Computer Questions

Comment on the output of the following C code. #include <stdio.h> int main() { int a = 1; switch (a) case 1: printf("%d", a); case 2: printf("%d", a); case 3: printf("%d", a); default: printf("%d", a); } What will be the output of the following Python code? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b) What does the rstan package in R primarily facilitate? What does setAutoCommit(false) do? Salary comes under ________ Head