Pointers By Function In C++ Program
Code Is Given Blow Just Click On Read More :-
#include<iostream>
using namespace std;
void point(int &,int &);
int main()
{
int a,b,bx,xy;
cout<<"Enter 1st Number =";
cin>>a;
cout<<"Enter 2nd Number =";
cin>>b;
void point(int &a,int &b);
}
void point(int &a,int &b)
{
int *p=&a;
int *p1=&b;
cout<<"p="<<a;
cout<<"*p="<<*p;
cout<<"p1="<<b;
cout<<"**p1="<<*p1;
}
No comments:
Post a Comment