usually, global == bad for a beginner class.
and do this:
void fnInitArray(int array[], int size)
{
for (int x = 0; x < size; x++)
array[x] = 0;
}
adjust accordingly. as someone said, array is a pointer, so it will be passed by reference, and any changes in the function will change the array.
edit: heh, the i of course put italics on doh.. changed to x