Write syntax to define friend functions in C++.
No Answer is Posted For this Question
Be the First to Post Answer
What is the output of the following 3D Array int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}; what is the output for arr[2][1][0]?
6 Answers HCL, Integra, IPMC, ORG,
Where must the declaration of a friend function appear?
What is the rule of three?
The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance
What is a .lib file in c++?
What is purpose of abstract class?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Is there something that we can do in C and not in C++?
template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }
What is difference c and c++?
What jobs can you get with a c++ certification?
Comment on local and global scope of a variable.