#include <stdio.h> #define op(x, y, z) ((x) y (z)) #define opp(x, y, z) (printf("%d " #y " %d = %d\n", x, z, op(x, y, z))) int main(void) { printf("%d\n", op(1, +, 2)); opp(1, +, 2); return 0; }
#include <stdio.h> #define op(x, y, z) ((x) y (z)) #define opp(x, y, z) (printf("%d " #y " %d = %d\n", x, z, op(x, y, z))) int main(void) { printf("%d\n", op(1, +, 2)); opp(1, +, 2); return 0; }