ABSTRACT

This chapter uses programming problems to illustrate how to use pointers and how to test programs for correctness.

This program has a function with two arguments: an array of integers and the number of array elements. The function returns 1 if the array elements are distinct, and the function returns 0 if two or more elements store the same value.