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

In a byte, what is the maximum decimal number that you can accommodate?

1086


What is wrong with this declaration?

1059


What is c++ used for today?

1070


What is getche() function?

996


how can I convert a string to a number?

1045


What are the scope of static variables?

1135


Can a local variable be volatile in c?

962


What is the correct code to have following output in c using nested for loop?

1040


Explain how do you determine the length of a string value that was stored in a variable?

1111


What does c mean in basketball?

954


Describe wild pointers in c?

1070


Why does everyone say not to use gets?

1048


What is the use of linkage in c language?

1024


What is structure packing in c?

1037


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

971