Naming+Conventions+(old)

=Answers to Exercises - File naming conventions=

The HTML page names are constructed as follows:


 * krx** - prefix (Kernighan and Ritchie eXercises)


 * c** - chapter number (1 to 8)


 * ee** - exercise number

So the first exercise is at krx101.html. The C files also have version numbers with the following meanings:


 * **0v** - ANSI/ISO C89 compliant. The example only uses the subset of C already covered at the point in the book at which the exercise appears.
 * **1v** - ANSI/ISO C89 compliant. The example uses aspects of C which may not have been covered at the point in the book at which the exercise appears.
 * **2v** - ANSI/ISO C99 compliant. The example only uses the subset of C already covered at the point in the book at which the exercise appears. It is compliant with the C99 standard (e.g. doesn't use implicit int ).
 * **3v** - ANSI/ISO C99 compliant. The example uses some aspects of C which exist only in the C99 release of the language.

The minor version number allows for different treatments of the same exercise by different people, in cases where this may be helpful. The minor version number is in base 36 (0 through Z). That ought to be enough for anybody. :-)