All pastes #1423604 Raw Copy code Copy link Edit

Someone

public c v1 · immutable
#1423604 ·published 2009-05-15 12:12 UTC
rendered paste body
// http://www.nicksays.co.uk/2009/05/awesome-c-exam-question/// Answer: 5 16 -1 21#include <stdio.h>int func (int a, int b) {	static int c = 1;	return a + b * (c *= -1);}int main () {	int a = 2, b = 3;	int c = func(a, b);		a *= a++;	b *= ++b;		printf("%d %d %d %d\n", a, b, c, func(a, b));}