how to find last index of array in C code example Example: c find last element in array sizeof(array)/sizeof(array[0]) - 1