(Move to ...)
▼
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);
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment