CS 3304 Fall 2000 Homework Assignment 7

50 Points
Due: Monday, November 13, at 5:00PM

The point value of each problem is shown in square brackets [ ]. Your solutions must be prepared with LaTeX or other word processing system and submitted as a stapled printout to a box outside the instructor's office (McBryde 638). This homework is due at 5:00PM on November 13, 2000. No late homework will be accepted. Complete each of the following problems and turn in your work:

Appropriate comments must be included in all your programs.

  1. [15] Sebesta Chapter 5, Problem 14. Also, do four-dimensional arrays.

  2. [15] Sebesta Chapter 5, Problem 17. Include your program in your solution, as well as the compiler messages that let you know which are not compatible.

  3. [20] Write a Pascal program that exhibits a dangling pointer, as well as a problem resulting from the dangling pointer (that is, make it cause harm). Explain why a problem resulted in a short paragraph.

     

copyright © 2000 Virginia Tech, ALL RIGHTS RESERVED
Last modified: October 25, 2000, 08:11:39 EDT, by Lenwood S. Heath <heath@cs.vt.edu>