what is a ststic variable and stiticfunction
briefly explain with exmple and in which case we use
Answer Posted / zubeir
Static variable is the one allocated statically, meaning
that, it is allocated once in the program space and exists
till the program space is deallocated (the close of the
application).
Note:- Some people get confused between stack allocation
and static allocaion. Both are different terms.
A static function is again the same concept with static
variable allocation, but here the allocation is not just a
variable but a function's 'activation frame'. The
activation frame, for now, consider the function's
information required by the compiler to execute the
function which is stored internally.
Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
what's the basic's in dot net
What is polymorphism in oops with example?
Why is encapsulation used?
What is abstraction in oop with example?
Explain the advantages of inheritance.
What is a null tree?
Prepare me a program for the animation of train
What is encapsulation with example?
hi all..i want to know oops concepts clearly can any1 explain??
What is object in oop?
What is abstract class in oop?
How Do you Code Composition and Aggregation in C++ ?
What is class and example?
How do you define social class?
What is polymorphism in oop example?