what is a ststic variable and stiticfunction
briefly explain with exmple and in which case we use
Answer Posted / subhashish sen
When a variable is declared with static keyword,its called
as static variable,means it retains its value across
different function calls.Its basically used for counting no
of objects created for a class in C++ and its initialized to
0 by default.
When a function declared as static,its called as static
function.It can only operate on static variables.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is an example of genetic polymorphism?
What does oop mean in snapchat?
Can destructor be overloaded?
Why is static class not inherited?
What is abstraction oop?
What is encapsulation and abstraction? How are they implemented in C++?
Can you explain polymorphism?
What is difference between polymorphism and inheritance?
What are oops methods?
Where is pseudocode used?
write a program to find 2^n+1 ?
Is abstract thinking intelligence?
What is the point of polymorphism?
Prepare me a program for the animation of train
What is the difference between a mixin and inheritance?