Skip to content

Solutions to exercises in Kernighan and Ritchie 2nd Ed (K&R2)

Notifications You must be signed in to change notification settings

danlucraft/kandr2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solutions to exercises from "The C Programming Language, 2nd Edition" by Kernighan and Ritchie

  • Chapter 1: done, except the final exercise
  • Chapter 2: done
  • Chapter 3: done
  • Chapter 4: done
  • Chapter 5: done
  • Chapter 6: done
  • Chapter 7: done
  • Chapter 8: in progress

To see the answers it's probably best to look at the list of commits rather than the files themselves, as for instance this commit shows exactly what changed from the example code to solve the problem. (The previous commit to this simply committed the example code unchanged.)

Some of the files have my own notes in the top comment after the ---, and most of them include the output from running the code in a comment at the bottom.

I've been running this code with clang 703.0.31 on OSX.

About

Solutions to exercises in Kernighan and Ritchie 2nd Ed (K&R2)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages