CALL BY REFERENCE PROGRAM

Document Sample
CALL BY REFERENCE  PROGRAM Powered By Docstoc
					#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;
}

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:2
posted:9/22/2012
language:English
pages:1
Description: CALL BY REFERENCE PROGRAM