Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Every time you visit for the FIRST TIME today... [Part 1]

Name: Anonymous 2013-10-20 22:56

Post a random function that you made. May be from any project you've done or make one impromptu.

Any QUALITY is allowed. No bullying!

Name: Anonymous 2014-01-09 16:26

>>186
The entire program after the subtraction is undefined behavior. All of it. From the point of the view of the caller, a C compiler that made foo print ``GOODBYE WORLD'' would be conforming and valid. So would a compiler that made that program spawn a new thread, and 35.6 seconds after the subraction, execs dd if=/dev/zero of=/dev/sda. That's what undefined behavior means, so you can't say ``this undefined behavior is just a little undefined.'' So that function relies on undefined behavior because it relies on the program not spontaneously turning into a text editor when foo is called. That is the `correctness' dependency on undefined behavior.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List