sizeof operator in C is used for finding the size of array in bytes. This can be used to find the number of elements in array by dividing it by size of single element.
int x; #defines an array with 20 elements
size n = sizeof(x)/sizeof(x);
We divide the size of x by size of 1st element in array to get the size or number of elements.