You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-11 05:56:29

Advertisement
Ads By Google

Re: C Plus Plus Placement:



Board footer