C Tutorials and Sample Problems
Structures, including Arrays of Structures
Instructions for doing this tutorial:
- Read the Discussion, which includes an Example and Gotcha's and Another Example. Ask questions as needed.
- Do the first practice problem, as follows:
- Do Practice Problem 1 (TODO 1 and TODO 2) in the Practice Problems.
- You should be able to tell from running the program whether or not it is correct.
- If you are not able to get the program correct, ask questions before proceeding.
It is much better to ask questions than to just look at the answer.
- AFTER you believe that you have a correct solution to Practice Problem 1,
compare your answer to our Solution to Practice Problem 1.
Ask questions as needed.
- Do the second practice problem similarly, as follows:
- Do Practice Problem 2 (TODO 3 and TODO 4) in the Practice Problems.
- You should be able to tell from running the program whether or not it is correct.
- If you are not able to get the program correct, ask questions before proceeding.
It is much better to ask questions than to just look at the answer.
- AFTER you believe that you have a correct solution to Practice Problem 2,
compare your answer to our Solution to Practice Problem 2.
Ask questions as needed.
Other information
For your convenience, here are links to the above documents as Microsoft Word 2007 documents (instead of PDF documents):
This document is part of a set of C tutorials developed by:
David Mutchler (David dot Mutchler at Rose-Hulman.edu)
Department of Computer Science and Software Engineering
Rose-Hulman Institute of Technology