Check out example codes for "c check if array is empty". It will help you in understanding the concepts better.

Code Example 1

//there is no "empty" in C. There is always a fixed number of elements with some value.
//However, you can implement it yourself by initializing each element to NULL
char* results[10] = { NULL };
/* some code */
if(results[i] == null) /* this is an empty element */

Learn ReactJs, React Native from akashmittal.com