[prev] [index] [next]

Exercise: Array functions

Implement a C function to sum the values in an integer array.

Use the following function prototype:

int  sumArray(int array[], int nelems);

Implement an array to print a C string, character at a time.

Use the following function prototype:

void  printString(char string[]);