Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

class X
{
public:
int x;
static void f(int z);
};
void X::f(int y) {x=y;}
What is the error in the sample code above?
a) The class X does not have any protected members.
b) The static member function f() accesses the non-static z.
c) The static member function f() accesses the non-static x.
d) The member function f() must return a value.
e) The class X does not have any private members.

Answer Posted / guest

option 'c' is the answer

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you save a c++ program?

996


the maximum length of a character constant can be a) 2 b) 1 c) 8

1053


Who calls main function?

1061


How the delete operator differs from the delete[]operator?

1061


Explain virtual class and friend class.

1009


What are put and get pointers?

1079


What are activex and ole?

1017


What is the purpose of template?

1059


Implement stack operations with pointers with appropriate exception checks.

941


How do you flush a buffer in c++?

1071


What is the extension of c++?

939


What is the full form of c++?

1276


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

1004


Is it possible to provide default values while overloading a binary operator?

1224


What is data types c++?

973