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
How many keywords are there in c?
Why is structure important for a child?
What do you mean by recursion in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
why wipro wase
Why flag is used in c?
what is the difference between 123 and 0123 in c?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Is null always defined as 0(zero)?
Explain the use of 'auto' keyword
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What is bss in c?
Difference between linking and loading?
How does sizeof know array size?
What is time complexity c?