C puzzles

26 03 2007

Some interesting C problems 🙂
It’s on Gowri Kumar’s page.

Here’s one of the problem:

The following C program segfaults of IA-64, but works fine on IA-32.

int main()
	int* p;
	p = (int*)malloc(sizeof(int));
	*p = 10;
	return 0;

Why does it happen so?

Check out the full article here:



3 responses

28 04 2007


30 05 2007
pimples treament

A refereshing change to find a website with useful information

12 11 2007


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: