Do you want the size in bytes, or the number of elements?
If you want the size in bytes, a simple:
will suffice. If you want the number of elements, use:
Code:
sizeof array / sizeof array[0]
The sizeof operator returns the size in bytes, so you're dividing the number of bytes in the whole array, by the number of bytes in the first element, thus you get the amount of elements.