3.8.                                        __ 81

3.8.4.   static

      .  
   ,      
    ,       ,
           
.

       static  ,
 ,     .

  stat_tst.cpp

int f()
{

static int called = 0;

++called;

return called;

}

  ,   ,  called  -
.      called   .  
 , called  ;      -
  .

     static    , 
       (privacy).  
   .     
      ,   -
  .

  static    . -
     ,    .   
 ,       ,  -
     ,     .   : 
       . -
,    C++,    (namespaces), 
      .

static int goo(int a)

{

}

int foo(int a)

{

b = goo(a) ;

//goo()  ,     