sizeof() operator returns the total number of size occupied by a variable, since array is also a variable, we can get the occupied size of array elements.
printf("Number of elemenets are: %d\n",n);
Number of elemenets are: 5
We can divide the occupied size of all array elements by size of any one array element. Consider the following statement:
total answers (1)
start bookmarking useful questions and collections and save it into your
own study-lists, login now to start creating your own collections.