All pastes #896624 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-02-08 20:42 UTC
rendered paste body
#include <stdio.h>

union foo
{
	int a;
	char *b;
};

void foo(union foo *c)
{
	printf("%p\n", c->b);
}

int main(int argc, char **argv)
{
	union foo f;

	f.b = (char *)0x32;
	foo(&f);
	return 0;
}