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
the question is that what you have been doing all these periods (one year gap)
Can a file other than a .h file be included with #include?
What is the purpose of & in scanf?
How do you use a 'Local Block'?
Explain the use of fflush() function?
What does printf does?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is volatile, register definition in C
What is the general form of #line preprocessor?
Can you please explain the difference between malloc() and calloc() function?
What is d'n in c?
Differentiate between declaring a variable and defining a variable?
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
What are the types of macro formats?
Does c have an equivalent to pascals with statement?