Course Links

Resources

External

This lab has three parts. It will give you practice working with loops, first to compute single values, then to modify arrays in place, and finally to create and return new arrays.

There are seven functions to write. Each should have some tests written for them in the main() function. Follow the examples as you do this.

To Do

Download lab-loop.c. This file contains six problems spread over three different sections. Open the file in an editor and follow the activities described in the comments. You will also need test.h and test.c to compile with.