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
What is wrong with this declaration?
What does char * * argv mean in c?
What is the difference between ++a and a++?
What are the types of type qualifiers in c?
What are the different types of objects used in c?
What is a floating point in c?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
List the difference between a "copy constructor" and a "assignment operator"?
Why can’t constant values be used to define an array’s initial size?
What is void c?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is const keyword in c?
How do I get a null pointer in my programs?