All pastes #1529479 Raw Edit

Unnamed

public text v1 · immutable
#1529479 ·published 2009-08-14 14:04 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv) {
	//int ans = (int)((int*)1 + 1);
	int ans = (int *)1 + 1;/* original */
	fprintf(stdout, "%d\n", ((int*)1+1));
	system("PAUSE");
	return 0;
}

/*#include <stdio.h>
#include <stdlib.h>

int *myint(void)
{
	static int myint = 9;
	fprintf(stdout, "myint -> %d\n\n", myint);
	return &myint;
}

int main(int argc, char **argv) {
	*(myint()) = 123456;
	myint();
	system("PAUSE");
	exit(EXIT_SUCCESS);
}*/