How the programmer of a class should decide whether to declare member function or a friend function?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

write infinite loop in C++ which does not use any variable or constant?

3 Answers  


why can't we declare data member of class auto register or extern

1 Answers  


What is a friend function in c++?

2 Answers  


Which operations are permitted on pointers?

0 Answers  


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

0 Answers  


What is the need of a destructor? Explain with the help of an example.

0 Answers  


How can you link a c program with a c function?

0 Answers  


Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.

3 Answers  


Why struct is used in c++?

0 Answers  


Write a recursive program to calculate factorial in c++.

0 Answers  


What is a "RTTI"?

6 Answers   HCL,


What is difference between c++ 11 and c++ 14?

0 Answers  


Categories