Program to illustrates Static Storage Classes


#include<iostream.h>
void incre( ) ;
void main( )
{
    incre( );
    incre( );
    incre( );
    incre( );
}
void incre( )
{
       static int i = 1;
       cout << "\n" <<i ;
       i = i + 1;
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|