Answer

Instead of declaring 10 integer variables, we declare one integer array that consists of 10 components. Then, instead of referencing the ten different variables in the code, we reference array elements (e.g. N(2) and N(10)).

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu