Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Program to Sawp two numbers without using third variable | C language | swapping program

Program to Sawp two numbers without using third variable | C language | swapping program






Q. Write a program to swap two numbers without using third variable?

#include
Void main()
 int a,b; 
 printf ("enter any two numbers")
         a=a-b; 
 a=a-b;

  printf("After Swapping :%d %d",a,b);

     getch();

}


Explanation :





  • Keywords in c language
  • C++ full notes
  • What is software















This post first appeared on Free Computer Science Study And Notes, please read the originial post: here

Share the post

Program to Sawp two numbers without using third variable | C language | swapping program

×

Subscribe to Free Computer Science Study And Notes

Get updates delivered right to your inbox!

Thank you for your subscription

×