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 can I prevent another program from modifying part of a file that I am modifying?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Explain output of printf("Hello World"-'A'+'B'); ?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
what is the basis for selection of arrays or pointers as data structure in a program
What is a scope resolution operator in c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is the value of uninitialized variable in c?
How are pointers declared in c?
What is extern variable in c with example?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Write a simple code fragment that will check if a number is positive or negative.
What is printf () in c?
If fflush wont work, what can I use to flush input?
plz let me know how to become a telecom protocol tester. thank you.