0%

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 

Beginner or novice programmers who wish to learn the C programming language. No prior programming experience is required.

Table of Contents

  1. Cover
  2. Front Matter
  3. Part I. The C Programming Language
    1. 1. Introduction
    2. 2. Our First Program
    3. 3. Types and Declarations
    4. 4. Exercises
    5. 5. Operators
    6. 6. Expressions
    7. 7. Statements
    8. 8. Exercises
    9. 9. Arrays
    10. 10. Pointers
    11. 11. Command-Line Arguments
    12. 12. Exercises
    13. 13. Functions
    14. 14. Exercises
    15. 15. Structures
    16. 16. Unions
    17. 17. Conditional Expression
    18. 18. Typedef
    19. 19. Const Qualifier
    20. 20. Enumerations
    21. 21. Function Pointers
    22. 22. Exercises
    23. 23. Preprocessor
    24. 24. Exercises
    25. 25. Dynamic Memory Allocation
    26. 26. Storage and Scope
    27. 27. Exercises
    28. 28. Standard Input and Output
    29. 29. File Input and Output
    30. 30. Exercises
    31. 31. Header and Source Files
  4. Part II. The C Standard Library
    1. 32. Introduction to C Standard Library
  5. Part III. Modern C Standards
    1. 33. Introduction to C11 Standard
    2. 34. The C17 Standard
    3. 35. The Upcoming C2X Standard
  6. Part IV. Dos and Don’ts
    1. 36. Do Not Use the gets Function
    2. 37. Initialize Variables Before Using Them
    3. 38. Do Not Read Out of Bounds
    4. 39. Do Not Free the Allocated Memory Twice
    5. 40. Do Not Cast the Result of malloc
    6. 41. Do Not Overflow a Signed Integer
    7. 42. Cast a Pointer to void* When Printing Through printf
    8. 43. Do Not Divide by Zero
    9. 44. Where to Use Pointers?
    10. 45. Prefer Functions to Function-Like Macros
    11. 46. static Global Names
    12. 47. What to Put in Header Files?
  7. Part V. Appendices
    1. Linkage
    2. Time and Date
    3. Bitwise Operators
    4. Numeric Limits
    5. Summary and Advice
  8. Back Matter
3.145.186.6