Modern C for Absolute Beginners: A Friendly Introduction to the C Programming Language, 2nd Edition
- 2h 45m
- Slobodan Dmitrović
- Apress
- 2024
Learn the basics of C, the C standard library, and modern C standards. Complete with modern, up-to-date examples and screenshots, this new edition is fully updated and reworked with the latest C23 standards and features.
C is a language that is as popular today as it was decades ago. It can be used to program a microcontroller or to develop an entire operating system. Author Slobodan Dmitrović takes you on a journey through the C programming language, the standard library, and the C standards basics. Each chapter is the right balance of theory and code examples.
Written in a concise and easy-to-follow manner, this book will provide you all the essentials needed to start programming in modern C.
What You Will Learn
- Understand C programming language and C standard library fundamentals
- Work with new C standards features
- Study the basics of types, operators, statements, arrays, functions, and structs
- Review the fundamentals of pointers, memory allocation, and memory manipulation
- Take advantage of best practices in C
Who This Book Is For
Beginner or novice programmers who wish to learn the C programming language. No prior programming experience is required.
About the Author
Slobodan Dmitrović is a software consultant, trainer, and entrepreneur. He is the CEO and founder of “Clear Programming Paradigm”, an LLC that provides outsourcing and training services. Slobodan’s ability to summarize complex topics and provide insightful training made him a sought after consultant for the automotive, fintech, and other industries. Slobodan has a strong interest in C, C++, software architecture, training, and R&D.
In this Book
-
Introduction
-
Introduction
-
Our First Program
-
Types and Declarations
-
Exercises
-
Operators
-
Expressions
-
Statements
-
Exercises
-
Arrays
-
Pointers
-
Command-Line Arguments
-
Exercises
-
Functions
-
Exercises
-
Structures
-
Unions
-
Conditional Expression
-
Typedef
-
Const Qualifier
-
Enumerations
-
Function Pointers
-
Exercises
-
Preprocessor
-
Exercises
-
Dynamic Memory Allocation
-
Storage and Scope
-
Exercises
-
Standard Input and Output
-
File Input and Output
-
Exercises
-
Header and Source Files
-
Introduction to C Standard Library
-
Introduction to C11 Standard
-
The C17 Standard
-
The Upcoming C23 Standard
-
Do Not Use the Gets Function
-
Initialize Variables before using Them
-
Do Not Read Out of Bounds
-
Do Not Free the Allocated Memory Twice
-
Do Not Cast the Result of malloc
-
Do Not Overflow a Signed Integer
-
Cast a Pointer to void* When Printing Through printf
-
Do Not Divide by Zero
-
Where to Use Pointers?
-
Prefer Functions to Function-like Macros
-
static Global Names
-
What to Put in Header Files?