Homework #2 Solution

$30.00

Description

Do homework problems 3.60 and 3.63 from Bryant & O’Hallaron 3rd edition.

Submit your homework answers as a gzipped tarball containing your answers to each problem, in the files hw2/loop.c and hw2/switch.c respectively. The .c files should compile cleanly with shell commands like this:

gcc -O2 -Wall -Wextra -S hw2/loop.c

As we will grade your submission with the latest version of GCC installed in /usr/ local/cs/bin/ on the newer SEASnet GNU/Linux servers, it would be wise to check your work on that platform. On this platform the shell command ‘gcc –version’ should output ‘gcc (GCC) 6.2.0’ or later.

To create your tarball, use the shell command:

tar -cf – hw2/loop.c hw2/switch.c |

gzip -9 >hw2.tar.gz

© 2016 Paul Eggert. See copying rules.

$Id: hw1.html,v 1.1 2016/09/20 17F30F13 eggert Exp $