Discover the full power of modern C programming, with an inside look at the new C23 standard.
For programs that need to be small, fast, and reliable, C is the gold standard. Whether you’re writing embedded code, low-level system routines, or high-performance applications, C is up to the challenge. This unique book by Jens Gustedt, a member of the ISO C standards committee, gets you up to speed with C23.
In Modern C, Third Edition you’ll:
Learn C basics, core features, and advanced concepts
Leverage major C23 improvements for security, reliability, and performance
Write portable code that runs anywhere
Build multi-threaded applications with atomics and synchronization
Create robust and resilient software with error handling
Use type-generic programming for reusable code
In Modern C, Third Edition you’ll learn to harness C’s full potential using the latest tools and techniques. After a quick review of the fundamentals suited for coders who haven’t used C in a while, this book guides you to mastery of C23, the latest ISO standard.
About the Technology From code running on the smallest embedded devices to the low-level libraries behind popular programming languages like Python and Ruby, the software world depends on C. And even after 50 years, it’s still getting better! The new C23 standard adds improvements for security, reliability, and performance. In this thoroughly-revised new edition, author Jens Gustedt gives you an authoritative inside view.
About the Book Modern C, Third Edition is a fast-paced introduction to the C language, with special attention on its most modern features. It starts with a quick review of structure, grammar, and execution and then progresses quickly to control structures, data types, operators, and other core language features. Fully revised for C23, this expanded Third Edition covers compound expressions and lambdas, new insights into approaching program failure, and how to transition smoothly to C23.
What's Inside
All major C23 features
Portable code that runs anywhere
Multi-threaded applications with atomics and synchronization
Use type-generic programming for reusable code
About the Reader For readers with intermediate skills in any programming language.
About the Author Jens Gustedt is a senior scientist at the French National Institute for Computer Science and Control (INRIA), deputy director of the ICube lab in Strasbourg, France, and an active member of the ISO C standards committee.
Quotes Describes the modern language that includes all the improvements made since ANSI C. Jens’ in-depth knowledge of C is apparent in his writing. - Robert C. Seacord, C Standards Committee Convenor
Helps you catch up with modern C and makes you think in detail about implementations, edge cases, and best practices. - Frances Buontempo, Author of Learn C++ by Example
An excellent reference for C23 that doesn’t waste the reader’s time. A rewarding read. - Stephen Kitt, Red Hat
How to use C when compact, high performing code is needed. - Ronald Mak, Author of Object-Oriented Software Design in C++
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.