Computer Organization and Architecture

C Programming Assignment

Consider the linear search program ~walker/assembly/prog1.p, written in Pascal.

  1. Translate that program to C, using the same statements as much as possible.

  2. Write a second version of the program in C, taking advantage of C's conditional execution of Boolean statements to eliminate the Done variable in the search procedure.


This document is available on the World Wide Web as

created October 1, 1997
last revised November 14, 1997