google search

Popular Posts


Welcome to BCA Notes

>>>>>>>>>>>>>>>>

Visitors

Search This Blog

Blogger templates

Visitor Map


Thursday, 20 March 2014

Swapping two number Using Pointer C++

#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;

}

0 comments:

Post a Comment