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 / kalpana.y

this is illegal because

->here the class name is foo
->but,func is declared
->const is declared at outside

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the question is that what you have been doing all these periods (one year gap)

2079


Can a file other than a .h file be included with #include?

1161


What is the purpose of & in scanf?

1068


How do you use a 'Local Block'?

1167


Explain the use of fflush() function?

1083


What does printf does?

1244


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1070


What is volatile, register definition in C

1105


What is the general form of #line preprocessor?

993


Can you please explain the difference between malloc() and calloc() function?

1122


What is d'n in c?

1124


Differentiate between declaring a variable and defining a variable?

1042


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

1104


What are the types of macro formats?

1119


Does c have an equivalent to pascals with statement?

1000