Check out example codes for "how to delete a struct in a arra of strcts c". It will help you in understanding the concepts better.

Code Example 1

free (i);
i = NULL

Learn ReactJs, React Native from akashmittal.com