sum them all up and divide by the size of the array. For example
int a[3] = {2,4,6};
The sum is 2+4+6 = 12
The average is 12/3 = 4
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.