Skip to content

aaron-barrett/c_lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

c_lang

Let's learn some C programming!

There are currently two main folders: One containing a solution set to the C Programming Language and one containing Misc Exercises. The C Programming Language Folder contains a complete set of solutions to the first 6 chapters of K&R.

A few notes about the K&R exercises:

  1. Each exercise is self contained. Even if breaking up a project into separate files might make sense, each file contains all code necessary to compile.
  2. If exercises expand on code given in the reading (most do), then that code is expanded in the exercise, and any subsequent use of that code uses only the basic version unless its obvious that the exercises intend to build upon that, mainly the Polish calculator in Chapter 4 or the sorting exercises of Chapter 5.
  3. All exercises are intentionally implemented using the syntax presented so far; the programs at the beginning of the book are not as succinct, and later programs use more compact syntax as it's presented.
  4. Two highlights of these exercises are 5.20 and an expansion of 5.19, 5.19_inversion_5.20, which translates general complex declarations with function arguments to words, and vice versa, respectively. An expanded version, 5.20_specifiers_and_structs and 5.19_inversion_5.20_specifiers_and_structs, includes functionality with storage class specifiers and structs.

About

C programming!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages