You are not logged in.

#1 2015-09-11 05:56:31

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Plus Plus Placement:

C Programming Quizzes C++ Placement

Question:
In the following statements,

class X
{
int fun1 ();
};
class Y
{
friend int X :: fun1 ();
};

Option A):
Function fun1() is member of class Y and friend of class Y
Option B):
Function fun1() is member of class X and friend of class Y
Option C):
Function fun1() is member of class X and friend of class X
Option D):
Function fun1() is member of class Y and friend of class X

Correct Answer is Option B):
Function fun1() is member of class X and friend of class Y


Failure is the first step towards seccess.

2015-09-11 05:56:31

Advertisement
Ads By Google

Re: C Plus Plus Placement:



Board footer