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

Program won't crash when it should

Name: Anonymous 2012-01-16 3:24

(GCC C)
I ran a pointer over each member of an integer array, storing one character of input in each cell.

The program seems to consistently crash when I try to store X+3 or more characters, where X is the size of the array, but if I do not exceed X+2 it will not crash.

Why does it crashes exactly at the point it does, but not for X+1 or X+2?

Name: Anonymous 2012-01-16 21:23

>>104

Many answers have already been given to you, of several technical dimensions. Yet you still ignore responses you receive, intentionally adding confusion with your multiple impersonations and with your gratuitously uneducated responses.

There is no undefined behavior in the original program. Data will be flushed in program termination as though as fflush() was called. There is no violation of any clauses in any part of the code. Environmental influences of the sort I've described do not trigger undefined behavior as erroneous language constructs or erroneous execution paths do. There's nothing else to discuss on that matter.

You confuse a lot of things: implementations, abstract machines and language semantics. Summed up with your general lack of posture, it is surely a discussion not worth going any further, since it has seemingly become a matter of personal honor for you to "win" such a debate.

I'd surely not worry about my future. But what about yours?

For real: you need friendship and support, and maybe even some therapy. You won't go very far with your attitude. >>109, >>110: Your multiple personalities are rather pitiable. Don't you realize you've already debunked yourself?

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