Book description
Learn the C programming language easily and in a straightforward way. This book teaches the basics of C, the C Standard Library, and modern C standards. No previous programming experience is required.
C is a language that is as popular today as it was decades ago. C covers a wide variety of domains. It can be used to program a microcontroller, or to develop an entire operating system. This book is an effort to introduce the reader to the C programming language in a concise and easy to follow manner.
The author takes you through the C programming language, the Standard Library, and the C standards basics. Each chapter is the right balance of theory and code examples.
After reading and using this book, you'll have the essentials to start programming in modern C.
What You Will Learn
- The C programming language fundamentals
- The C Standard Library fundamentals
- New C Standards features
- The basics of types, operators, statements, arrays, functions, and structs
- The basics of pointers, memory allocation, and memory manipulation
- Take advantage of best practices in C
Who This Book Is For
Table of contents
- Cover
- Front Matter
-
Part I. The C Programming Language
- 1. Introduction
- 2. Our First Program
- 3. Types and Declarations
- 4. Exercises
- 5. Operators
- 6. Expressions
- 7. Statements
- 8. Exercises
- 9. Arrays
- 10. Pointers
- 11. Command-Line Arguments
- 12. Exercises
- 13. Functions
- 14. Exercises
- 15. Structures
- 16. Unions
- 17. Conditional Expression
- 18. Typedef
- 19. Const Qualifier
- 20. Enumerations
- 21. Function Pointers
- 22. Exercises
- 23. Preprocessor
- 24. Exercises
- 25. Dynamic Memory Allocation
- 26. Storage and Scope
- 27. Exercises
- 28. Standard Input and Output
- 29. File Input and Output
- 30. Exercises
- 31. Header and Source Files
- Part II. The C Standard Library
- Part III. Modern C Standards
-
Part IV. Dos and Don’ts
- 36. Do Not Use the gets Function
- 37. Initialize Variables Before Using Them
- 38. Do Not Read Out of Bounds
- 39. Do Not Free the Allocated Memory Twice
- 40. Do Not Cast the Result of malloc
- 41. Do Not Overflow a Signed Integer
- 42. Cast a Pointer to void* When Printing Through printf
- 43. Do Not Divide by Zero
- 44. Where to Use Pointers?
- 45. Prefer Functions to Function-Like Macros
- 46. static Global Names
- 47. What to Put in Header Files?
- Part V. Appendices
- Back Matter
Product information
- Title: Modern C for Absolute Beginners: A Friendly Introduction to the C Programming Language
- Author(s):
- Release date: February 2021
- Publisher(s): Apress
- ISBN: 9781484266434
You might also like
book
Learn C the Hard Way: A Clear & Direct Introduction To Modern C Programming
This is the Rough Cut version of the printed book. Need to learn C? Now you …
video
Programming in C - The Complete Course
A vast majority of modern programming languages and popular libraries are based on C, making C …
video
Learn and Master C Programming For Absolute Beginners!
In this course, we'll explore the C programming language from the ground up. We'll begin with …
book
Modern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards
Learn the C++ programming language in a structured, straightforward, and friendly manner. This book teaches the …