Modern C, Third Edition
eBook - ePub

Modern C, Third Edition

Covers the C23 standard

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Modern C, Third Edition

Covers the C23 standard

About this book

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 Readers

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.

Table of Contents

Level 0 Encounter
1 Getting started
2 The principal structure of a program
Level 1 Acquaintance
3 Everything is about control
4 Expressing computations
5 Basic values and data
6 Derived data types
7 Functions
8 C library functions
Level 2 Cognition
9 Style
10 Organization and documentation
11 Pointers
12 The C memory model
13 Storage
14 More involved processing and I/O
15 Program failure
Level 3 Experience
16 Performance
17 Function-like macros
18 Type-generic programming
19 Variations in control flow
20 Threads
21 Atomic access and memory consistency
A Transitional code
B C compilers
C C libraries
Takeaways

Get a free eBook (PDF or ePub) from Manning as well as access to the online liveBook format (and its AI assistant that will answer your questions in any language) when you purchase the print book.

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Publisher
Manning
Year
2025
eBook ISBN
9781638357711

Table of contents

  1. Praise for Modern C
  2. Modern C, Third Edition
  3. copyright
  4. contents
  5. preface
  6. acknowledgments
  7. about this book
  8. about the author
  9. about the cover
  10. Level 0: Encounter
  11. 1 Getting started
  12. 2 The principal structure of a program
  13. Level 1: Acquaintance and Buckle up
  14. 3 Everything is about control
  15. 4 Expressing computations
  16. 5 Basic values and data
  17. 6 Derived data types
  18. 7 Functions
  19. 8 C library functions
  20. Level 2: Cognition
  21. 9 Style
  22. 10 Organization and documentation
  23. 11 Pointers
  24. 12 The C memory model
  25. 13 Storage
  26. 14 More involved processing and I/O
  27. 15 Program failure
  28. Level 3: Experience
  29. 16 Performance
  30. 17 Function-like macros
  31. 18 Type-generic programming
  32. 19 Variations in control flow
  33. 20 Threads
  34. 21 Atomic access and memory consistency
  35. Technical annex
  36. A. Transitional code
  37. B. C compilers
  38. C. C libraries

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Modern C, Third Edition by Jens Gustedt in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over 1.5 million books available in our catalogue for you to explore.