ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 
 
Question
what is a ststic            variable   and  stiticfunction 
briefly explain with exmple and in which case we use
 Question Asked At :: HCL
 Question Submitted By :: saroj
I also faced this Question!!     Rank Answer Posted By  
 
Answer
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.

 
Zubeir
 
View All Answers
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com