Swapping program in one line
Swapping program in one line
#include
#include
void main() {
clrscr();
int a=36,b=20;
a = (a+b) - (b = (a+b)-b);
printf("%3d %3d",a,b);
getch();
}
#include
void main() {
clrscr();
int a=36,b=20;
a = (a+b) - (b = (a+b)-b);
printf("%3d %3d",a,b);
getch();
}
Comments
Post a Comment