[ create a new paste ] login | about

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

C, pasted on Nov 4:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#define PRODUCT(x) ((x)*(x))
int main()
{
    int i=3,j,k;
    j=PRODUCT(i++);
    k=PRODUCT(++i);
    printf("%d %d",j,k);
    return 0;
}


Output:
1
9 49


Create a new paste based on this one


Comments: