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 zero based addressing?
What is restrict keyword in c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Explain the use of function toupper() with and example code?
What is ponter?
What are the types of c language?
What are header files and what are its uses in C programming?
What is the most efficient way to store flag values?
What is the advantage of using #define to declare a constant?
Can you tell me how to check whether a linked list is circular?
In which layer of the network datastructure format change is done
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
Write a program on swapping (100, 50)
What is the difference between text and binary i/o?