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 zero based addressing?

1239


What is restrict keyword in c?

1171


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2234


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1240


Explain the use of function toupper() with and example code?

1172


What is ponter?

1328


What are the types of c language?

1084


What are header files and what are its uses in C programming?

1337


What is the most efficient way to store flag values?

1233


What is the advantage of using #define to declare a constant?

1156


Can you tell me how to check whether a linked list is circular?

1500


In which layer of the network datastructure format change is done

1944


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1131


Write a program on swapping (100, 50)

1168


What is the difference between text and binary i/o?

1119