Swapping of two number without third variable:-
Swapping of two number without third variable is the basic program of the
c language program,it is the little bit tricky program here the code is below:-
#include<stdio.h>
void main()
{
int a,b;
printf("Enter two number\n");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("The swapped values are a=%d and b=%d",a,b);
}
ConversionConversion EmoticonEmoticon