C Program to swap two numbers without third variable
Solution
#include<stdio.h>
int main()
{
int a=10, b=20;
printf("Before swap a=
[?]
b=%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf(
[?]
,
[?]
);
return 0;
}
Solution
OK