Book description
This is the Rough Cut version of the printed book.
Need to learn C? Now you can! Forget old-fashioned C programming books that assume you're a computer hardware expert and teach frustrating, old-fashioned coding styles. If you know any language at all, Zed A. Shaw's Learn C the Hard Way can help you get started fast with modern C programming. This book/CD package is called "The Hard Way," but it's really quite easy: it just requires discipline, practice, and persistence. Shaw teaches how to write modern, clean, clear C code through dozens of brilliantly-crafted exercises, most on two pages. You simply read each exercise, type in its sample code precisely (no copy-and-paste!), and make the programs run. As you read, type, fix your mistakes, and watch the results, you learn how C works… what good modern C programs look like… how to read, write, and "see" code… how to spot crucial differences that change or break programs… all the essentials of C logic, I/O, variables, and functions… and the attention to detail that is indispensable to successful C programming. At first, yes, it can be difficult. But it gets easier. And Shaw offers plenty of extra help through 5+ full hours of CD-based teaching video. Nothing important comes without discipline, practice, and persistence. But, with this package, if you bring those qualities, you will master C… and you will reap the very real personal and career rewards that go with C programming expertise!
Table of contents
- About This eBook
- Title Page
- Copyright Page
- Contents
- Acknowledgments
- This Book Is Not Really about C
- Exercise 0. The Setup
- Exercise 1. Dust Off That Compiler
- Exercise 2. Using Makefiles to Build
- Exercise 3. Formatted Printing
- Exercise 4. Using a Debugger
- Exercise 5. Memorizing C Operators
- Exercise 6. Memorizing C Syntax
- Exercise 7. Variables and Types
- Exercise 8. If, Else-If, Else
- Exercise 9. While-Loop and Boolean Expressions
- Exercise 10. Switch Statements
- Exercise 11. Arrays and Strings
- Exercise 12. Sizes and Arrays
- Exercise 13. For-Loops and Arrays of Strings
- Exercise 14. Writing and Using Functions
- Exercise 15. Pointers, Dreaded Pointers
- Exercise 16. Structs And Pointers to Them
- Exercise 17. Heap and Stack Memory Allocation
- Exercise 18. Pointers to Functions
- Exercise 19. Zed’s Awesome Debug Macros
- Exercise 20. Advanced Debugging Techniques
- Exercise 21. Advanced Data Types and Flow Control
- Exercise 22. The Stack, Scope, and Globals
- Exercise 23. Meet Duff’s Device
- Exercise 24. Input, Output, Files
- Exercise 25. Variable Argument Functions
- Exercise 26. Project logfind
- Exercise 27. Creative and Defensive Programming
- Exercise 28. Intermediate Makefiles
- Exercise 29. Libraries and Linking
- Exercise 30. Automated Testing
- Exercise 31. Common Undefined Behavior
- Exercise 32. Double Linked Lists
- Exercise 33. Linked List Algorithms
- Exercise 34. Dynamic Array
- Exercise 35. Sorting and Searching
- Exercise 36. Safer Strings
- Exercise 37. Hashmaps
- Exercise 38. Hashmap Algorithms
- Exercise 39. String Algorithms
- Exercise 40. Binary Search Trees
- Exercise 41. Project devpkg
- Exercise 42. Stacks and Queues
- Exercise 43. A Simple Statistics Engine
- Exercise 44. Ring Buffer
- Exercise 45. A Simple TCP/IP Client
- Exercise 46. Ternary Search Tree
- Exercise 47. A Fast URL Router
- Exercise 48. A Simple Network Server
- Exercise 49. A Statistics Server
- Exercise 50. Routing the Statistics
- Exercise 51. Storing the Statistics
- Exercise 52. Hacking and Improving Your Server
- Next Steps
- Index
- Where are the Companion Content Files?
- Code Snippets
Product information
- Title: Learn C the Hard Way: A Clear & Direct Introduction To Modern C Programming
- Author(s):
- Release date: July 2015
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133124385
You might also like
book
Modern C for Absolute Beginners: A Friendly Introduction to the C Programming Language
Learn the C programming language easily and in a straightforward way. This book teaches the basics …
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
Learn C Programming
Get started with writing simple programs in C while learning the skills that will help you …