« Concerning a lamentable tendency lately arisen in fruit stands | Main | istic. »

January 18, 2009

Comments

The things that people do to their stacks...

But I don't understand -- is the piped input from t1 really necessary? Or, is that the point?

It's part of the point—while the input from t1 in this case is obviously tendentious given how it was generated, that same input could come from anything and be, fortuitously, the address of something t2 can manipulate without segfaulting.

That is not cute. Kitties are cute.

Is stack organization part of the C/C++ language definition, or is this program's output dependent on the compiler you use?

I think it's architecture-dependent but I'm not certain of that.

So you're saying, it's like one of them thar trolley problems that you philosophers seem so fond of, but with pointers to the stack instead of people tied to the rails.

I agree with TMK, that the particular behavior may be entirely architecture dependent...

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)