Swapping of Two Number in C
Let's make a program in C Language to swap two number in one line
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10;
int b=20;
b=a+b-(a=b);
printf("%d %d",a,b);
}
Thankyou I hope you like this article.If you like it please follow me in future I will post more article on programming.
Comments
Post a Comment