Program to illustrate Local Variables


            #include<iostream.h>
     void  show(int j)
    {
        int  k = 45 ;                         // Local Variable Declaration
           cout<<"\n value of j : "<<j;
           cout<<"\n value of k : "<<k;
     } 
       void main( )
       {
        int i =200;                          // Local Variable Declaration
        show( i);
        }

0 comments:

Post a Comment

 
 
 
 


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