C++ vs C++0x vs C++11 vs C++98

C++98 was the first edition of the C++ standard. It had defined all the basic language constructs, the STL, and the standard library.

C++03 was the next revision to this standard. This was majorly a considered a bugfix for the standard as it corrected 92 core language defect reports, 125 library defect reports, and included only one new language feature: value initialization.

C++0x was the name of the work in progress that was expected to complete by 2008-09 but finally completed in 2011.

C++11 was the modern C++ standard published in 2011. This brought many major extensions and improvements to the existing language. Following are the major features of C++11 −

  • Initializer lists
  • Automatic type deduction
  • Rvalue references and move constructors
  • constexpr – Generalized constant expressions
  • Modification to the definition of plain old data
  • Uniform initialization
  • Range-based for loop
  • Lambda functions and expressions
  • Alternative function syntax
  • Explicit overrides and final
  • A constant null pointer, nullptr
  • Strongly typed enumerations
  • Right angle bracket not being treated as an operator at appropriate places
  • And many more. You can get the complete list with examples at https://en.wikipedia.org/wiki/C%2B%2B11.

Updated on: 11-Feb-2020

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started