Hi, I'm Bill, a new member and a Unix guy.
I don't know why you need the terminator when you know how many numbers are in the array. Would you ever need to count numbers like this, say?
Code:counter = 0; while (a[counter] != terminator) counter++;