A glimpse of undefined behavior in C
blog.chris-cole.net
A glimpse of undefined behavior in C
1–10 of 67 posts
Re: A glimpse of undefined behavior in C
#2Re: A glimpse of undefined behavior in C
#3Re: A glimpse of undefined behavior in C
#4Re: A glimpse of undefined behavior in C
#5Not "well-defined" is the proper terminology.
Re: A glimpse of undefined behavior in C
#6The way I learned that in C a long time ago was "post increment" was "post statement increment".
Re: A glimpse of undefined behavior in C
#7Really, that's one of the reason why Java still works well at big companies. The code is usually so verbose and 'un-smart' that it's quite hard for programmers with minority complex to obfuscate it when they're trying to prove that they're smart. It's a shame however that if the language is primitive then you can always create a big framework to obfuscate stuff. :)
Re: A glimpse of undefined behavior in C
#8The way I learned that in C a long time ago was "post increment" was "post statement increment".
exactly. This is precisely to spec; and I got the answer of 60 immediately on looking at the code.
Re: A glimpse of undefined behavior in C
#9Earlier quoted context omitted.
exactly. This is precisely to spec; and I got the answer of 60 immediately on looking at the code.
This is incorrect; it is undefined behavior according to the spec: http://www.reddit.com/r/programming/comments/1rrefp/a_glimps...