Computer Science I (CS 170)
Dr. William J. Joel, WS 110, 7-9353
Test No. 6
(Due Monday, May 7, 2001)

1 Given a one-dimensional array consisting of ten integers

    int myArray[10];

develop a method to determine whether or not a given integer is in the array. That is, whether the integer is one of the elements in the array.
(60 points)
2 (a) How are two dimensional arrays declared in C++? Include an example.
(b) Discuss how it is true that in C++ a two dimensional array is actually a one dimensional array of one dimensional arrays.
(40 points)