Undefined Behavior Series

在西电,由于C/C++的教学水平较低,特别是极个别老师不懂得未定义行为, 经常强行断言某个未定义行为的行为,并以此折磨学生。 这导致学生在编程中滥用未定义行为,带来很多看上去莫名其妙的WA、RE甚至TLE。 另外,某些公司的程序员似乎是根本不会写程序还敢来招人, 居然在笔试题里让学生判断未定义行为的结果。 因此,特地翻译一批文章,强调避免未定义行为。

A Guide to Undefined Behavior in C and C++

This is a Chinese translation of the [original article](https://blog.regehr.org/archives/213) on John Regehr's blog.

Time complexity problem

Another stupid problem can lead to some thoughts.

Analysis of Undefined Behaviors from an Examination

Even a stupid problem can lead to some thoughts.

What Every C Programmer Should Know About Undefined Behavior #3/3

This is a Chinese translation of the [original article](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_21.html) on LLVM blog.

What Every C Programmer Should Know About Undefined Behavior #2/3

This is a Chinese translation of the [original article](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_14.html) on LLVM blog.

What Every C Programmer Should Know About Undefined Behavior #1/3

This is a Chinese translation of the [original article](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html) on LLVM blog.

Steve Summit's Mail about Undefined Behavior

This is a Chinese translation of Steve's [original post](http://www.eskimo.com/~scs/readings/undef.950321.html) about undefined behavior.