Sunday, October 30, 2011

Elements of Modern C Style � Sutter’s Mill

Elements of Modern C Style � Sutter’s Mill:

The C 11 standard offers many useful new features. This page focuses specifically and only on those features that make C 11 really feel like a new language compared to C 98, because:

They change the styles and idioms you’ll use when writing C code, often including the way you’ll design C libraries. For example, you’ll see more smart pointer parameters and return values, and functions that return big objects by value.
They will be used so pervasively that you’ll probably see them in most code examples. For example, virtually every five-line modern C code example will say “auto” somewhere.