CSC161 2010F Imperative Problem Solving

Laboratory: Pointers to Functions

Summary:

Prerequisites: Sorting.

Preparation

a. Log in to your MathLAN workstation. (Of course, you've probably already done that if you're reading this laboratory.)

b. Create a directory for this lab. I'd suggest Labs/FunctionPointers.

c. Make copies of these files. (Cross your fingers that I did not make a mistake in transcription.)

d. Pull out your K&R.

e. Figure out how to put everything into an executable.

Exercises

Do K&R 5.14 and 5.15.

For Those with Extra Time

Do K&R 5.16.

 

History

Tuesday, 9 November 2010 [Samuel A. Rebelsky]

  • Created.

 

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue Nov 9 10:56:55 2010.
The source to the document was last modified on Tue Nov 9 10:56:54 2010.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC161/2010F/Labs/function-pointers-lab.html.
A PDF version of this document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC161/2010F/Labs/function-pointers-lab.pdf

Samuel A. Rebelsky, rebelsky@grinnell.edu

Copyright © 2010 Samuel A. Rebelsky. This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 License. To view a copy of this license, visit or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.