a hint on isum is that your function declaration would look like this: int isum( int nNum[], int nQty );