[ create a new paste ] login | about

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

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


Output:
1
2

9 49


Create a new paste based on this one


Comments: