[ create a new paste ] login | about

Link: http://codepad.org/2VxiUKpU    [ raw code | output | fork ]

C, pasted on Jul 13:
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;
} 


Output:
1
Let's see what half of n + 2 is: n + 2 / 2


Create a new paste based on this one


Comments: