Open Means Open Means
The following program to swap Two numbers without using temp variable
int main()
{
int a=10,b=20;
printf("before swapping a=%d...b=%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("after swapping a=%d...b=%d",a,b);
return 0;
}

No comments

Login to post a comment

Show
  • Create an account
  • Forgot your username?
  • Forgot your password?

Related Articles

  • Swap Data Table using vb.net
  • Famous Exchange of Spies at Glienicker Bridge During the Cold War
  • Indian Premier League ( IPL 3 ) auction results.
  • About Us
  • Faqs
  • Contact Us
  • Disclaimer
  • Terms & Conditions