Answer Posted / suresh reddy
1. Static limits the scope of an object(variable) or a
function to the file in which it being compiled.
2. A static variable retains its value between function
calls, even though its a local variable.
3. Lifetime of a static variable is the entire program.
4. We can't use extern keyword for a static object.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
any one please tell me the purpose of operator overloading
What is the important feature of inheritance?
Can we have inheritance without polymorphism?
Plese get me a perfect C++ program for railway/airway reservation with all details.
Why is abstraction used?
How to call a non virtual function in the derived class by using base class pointer
What does enum stand for?
Why is static class not inherited?
How can you overcome the diamond problem in inheritance?
Which language is pure oop?
What is polymorphism in oop example?
is there any choice in opting subjects like 4 out of 7
what type of questions
Can an interface inherit a class?
What is a superclass in oop?