#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #define swap(t,x,y) { t _z; _z = y; y = x; x = _z; } int main() { int a = 0,b = 1; swap(int,a,b); printf("%d %d ",a,b); return 0; }
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #define swap(t,x,y) { t _z; _z = y; y = x; x = _z; } int main() { int a = 0,b = 1; swap(int,a,b); printf("%d %d ",a,b); return 0; }