To determine the size of an array in C, use:
c
int size = sizeof(array) / sizeof(array[0]);
Here, sizeof(array)
gives the total bytes of the array, and sizeof(array[0])
gives the size of one element. Dividing them gives the total number of elements in the array.