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
In a byte, what is the maximum decimal number that you can accommodate?
What is wrong with this declaration?
What is c++ used for today?
What is getche() function?
how can I convert a string to a number?
What are the scope of static variables?
Can a local variable be volatile in c?
What is the correct code to have following output in c using nested for loop?
Explain how do you determine the length of a string value that was stored in a variable?
What does c mean in basketball?
Describe wild pointers in c?
Why does everyone say not to use gets?
What is the use of linkage in c language?
What is structure packing in c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?