I need help in calculating the total number of elements stored in an array. For example if I have something like,
int a[10] = {1 , 2 , 3 , 4 , 5 , 6 , 7 , 8};
As you can see that the elements of the array are less than the size of the array i.e. 10. Then how do I calculate the total number of elements in the array?