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 foo {
public:
static int func(const char*& p) const;
};

This is illegal, why?

Answer Posted / revathy

static functions can access static data only
Thus this is illegal

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static volatile in c?

983


Explain how can you tell whether two strings are the same?

983


Stimulate calculator using Switch-case-default statement for two numbers

2927


Using which language Test cases are added in .ptu file of RTRT unit testing???

4230


Difference between pass by reference and pass by value?

1107


What is the difference between typedef and #define?

1002


What is an identifier?

989


If I have a char * variable pointing to the name of a function ..

1138


Which is the best website to learn c programming?

1045


Explain what are binary trees?

1033


Explain what is meant by high-order and low-order bytes?

1010


Write program to remove duplicate in an array?

1041


What is the difference between class and object in c?

1107


What are linked lists in c?

1097


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

1085