1 2 3 4 5 6 7 8 9 10 11 12 13
#include <stdio.h> #define TOSTRING2(x) #x #define TOSTRING(x) TOSTRING2(x) #define HALF(n) n / 2 int main(void) { int n = 8; printf("Let's see what half of n + 2 is: %s\n", TOSTRING(HALF(n + 2))); return 0; }
1
Let's see what half of n + 2 is: n + 2 / 2