Dear All,

The following segment is a recursive function returns the sume of an integer array given its length.

int sumArray(int anArray[], int length) {

if (length == 0)

retyrb 0;

return anArray[length] + sumArray(anArray, length);

}

Can anyone tell me where is the erros and how to revise it.

Thanks a lot.

Wah