If you declare your arrays properly, you can determine the number of elements, and perform some operation on each element, without ever referring explicitly to the size used to dimension the array. This method has the advantage that, if the size or type of the arrray element changes, only the defintion of the array needs to change. For example:
{
my_type array[100];
for (i = 0; i < (sizeof array / sizeof *array); i++)
{
/* ... */
}
}