CALL BY REFERENCE PROGRAM by zuhaibriaz

VIEWS: 2 PAGES: 1

More Info
									#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
void f(int);
main()
{
     int i;
     i=10;
     cout<<"\n"<<"in main(),the value of i is :"<<i;
     f(i);
     cout<<"\n"<<"back in main(),the value of i is :"<<i<<"\n";
     getch();
}
     void f(int i)
     {
           i*=2;
           cout<<"\n"<<"in f(),the value of i is :"<<i;
}

								
To top