class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why?
Answer Posted / revathy
static functions can access static data only
Thus this is illegal
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is static volatile in c?
Explain how can you tell whether two strings are the same?
Stimulate calculator using Switch-case-default statement for two numbers
Using which language Test cases are added in .ptu file of RTRT unit testing???
Difference between pass by reference and pass by value?
What is the difference between typedef and #define?
What is an identifier?
If I have a char * variable pointing to the name of a function ..
Which is the best website to learn c programming?
Explain what are binary trees?
Explain what is meant by high-order and low-order bytes?
Write program to remove duplicate in an array?
What is the difference between class and object in c?
What are linked lists in c?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above