---------------------------------------- > Date: Tue, 15 Jan 2008 21:23:17 -0800 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: Where are the software engineers of tomorrow? > > { int x[10]; int* y; > y = x; > y += 12; /* C standard says this line can crash your program */ > } > No, it doesn't. Pointer arithmetic is explicitly allowed by the standard. That means that y is advanced by 12 integers.
Gabe _________________________________________________________________ Watch “Cause Effect,” a show about real people making a real difference. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
