    12:	    int k = 300; 
    13	    cout  "Local k == "  k	 '\n'; 
    14:	    cout  "Global k == "  :	:k  '\n'; 
    15:	  } 
    16:	  return 0; 
    17:	} 

      3     100  
 k;    7   i,    
mainO.  9-10   k  i.    
     9,       
 k. 
     11-15   -,    
main().       ,    
    ( 11  15). ,    
    if, while   .  
    12      k, 
  300.    ANSI , C++   
      -.    
  k: ,    3,  ,  
  12.    k      
 ,   13    .  
    ,    
 ,     14. 
    ,   -,    
  .  ,      
 .      : 

    if (expression) { 
       int count = 0;	//      
                                   //  if 
       ......
   } 
   cout  "count == "  count  '\n';   // ??? 

           ,  
 count      if,   
  . 
          , 
  for.  ANSI     : 

    void f() 
    { 
       int i; 
       for (i=0;  i<MAX; !++ ) 
            .......
    } 

     C++        , 
   : 

     void f() 
    { 
       for (int i=0;   i<MAX;  i++) 
          .....
     }

              
for.    (   i=0;)  
 ,   ,  , i      
  f()     ,   for. 

     

        C++,   ANSI .  
    const    " ", 
       .    
  count  : 

    const int count =1234; 

        

    count++;	// ??? 

         const  
 ,    #define.   

    #define MAX 100 

    ,    100 (  
 100).     : 

    for (int i=0;  i<MAX;  i++) 


     12.   C++     287 
