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")
scanf("%d %d",&a,&b); a=a+b;
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