Skip to the content.

Chapter 6: Structures

Exercises from “The C Programming Language” (2nd Edition) by Brian W. Kernighan and Dennis M. Ritchie.

Exercises

# Description Source
6-01 getword handling underscores, string constants, comments -
6-02 Group variable names by first 6 characters -
6-03 Cross-referencer for words in documents -
6-04 Word frequency count, sorted by frequency -
6-05 undef: remove name from hash table -
6-06 #define processor with arguments -

Compilation

gcc -Wall -Wextra -o exercise exercise.c
./exercise