© Will Briggs 2021
W. BriggsC++20 for Lazy Programmershttps://doi.org/10.1007/978-1-4842-6306-8_28

28. C

Will Briggs1  
(1)
Lynchburg, VA, USA
 

If you know C++, you almost know C. Experience with C gets you another brag – one character long, so it should fit! – on your resume. C is popular for operating systems and embedded systems, and there are a lot of libraries in it.

C is essentially what we covered before getting to classes, excluding
  • SDL/SSDL

  • cin and cout

  • & parameters

  • bool (use int instead)

  • constexpr (use const instead)

There are no classes, exceptions, overloaded operators, templates, or namespaces. structs exist but don’t have member functions or public/private/protected sections (it’s all public).

There are smaller differences, including the following: ...

Get C++20 for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.