#include<iostream.h>
main()
{
int a,b,c;
int *i,*j;
cout<<"Enter integer:";
cin>>a;
i=&a;
cout<<"Enter integer:";
cin>>b;
j=&b;
c=*i;
a=*j;
b=c;
cout<<a<<b;
}
Thursday, 20 March 2014
Swapping two number Using Pointer C++
12:04
No comments
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment