void fillArray (int array[], int number) parameters : array of integers number of integers to store in the array description: generate "number" random numbers from 1 to 100 and store them in positions [0..number-1] So the array is always the same size, but may be filled with a different number of random values on each run void printArray (int array[], int number) parameters : array of integers number of integers stored in the array description: print the values in the array. The values appear 10 per line and are comma separated. The last value on each line does not have a comma after it. The last line may or may not have 10 values: for example, if the user asked for 15 numbers, then the last line would only have 5 values; or if the user asked for 92 values, then the output would be 9 lines containing 10 values and the last output line would have 2 values. |
|
|
int array[size];
|
|
void printArray (int array[], int number) parameters : array of integers number of integers stored in the array description: print the values in the array. The values appear 10 per line and are comma separated. The last value on each line does not have a comma after it. The last line may or may not have 10 values: for example, if the user asked for 15 numbers, then the last line would only have 5 values; or if the user asked for 92 values, then the output would be 9 lines containing 10 values and the last output line would have 2 values. |
|
|
|
|
|
|