Check out example codes for "size of an array c". It will help you in understanding the concepts better.

Code Example 1

int prices[5] = { 1, 2, 3, 4, 5 };

int size = sizeof prices / sizeof prices[0];

printf("%u", size); /* 5 */

Code Example 2

int a[17];
size_t n = sizeof(a)/sizeof(a[0]);

Code Example 3

int a[20];
int length;
length = sizeof(a) / sizeof(int);

Learn ReactJs, React Native from akashmittal.com