Friday, 27 April 2012

Program Of Call By Address In C++


#include<iostream.h>
#include<conio.h>
         int sum(int *x,int *y);  // Function Delaration
main()
{
clrscr();
int a,b,c;
cout<<"Enter First NUmber=";
cin>>a;
cout<<"Enter Second NUmber=";
cin>>b;
c =  sum(&a,&b);                 // Function CAlling
cout<<"\n NAswer="<<c;
getch();
}
int sum(int *x,int *y)    // Function Define
{
int  z;
return z;
}

No comments:

Post a Comment