A worthy insight into undefined behaviour
While reading this article about how undefined behaviour in the aspect of C and C++, which can cause headaches and aimless hours lost, by banging your head of the wall, on the nuances of the syntax which can throw you off completely… this article is a worthy read and ensures that code do not fall into the trap of producing “weird errors” or “it works fine on my dev machine/environment, but but…. on the production, it behaves strangely”….
Heh… this article shows a completely undefined behaviour here…
<pre><strong>$ cc test.c -o test $ ./test Formatting root partition, chomp chomp</strong></pre>
Well, not really undefined but… you get the drift… the author explains how certain compiler emitted code can cause “odd behaviour” which is the essence of ’undefined behaviour’
Credit is due to this author of the blog, John Regehr, cheers for that article… thought provoking and interesting to read…
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.






