Check out example codes for "get number of objects in enum c++". It will help you in understanding the concepts better.

Code Example 1

enum Folders { FA, FB, FC, Folders_MAX = FC };
ContainerClass *m_containers[Folders_MAX + 1];
....
m_containers[FA] = ...; // etc.

Learn ReactJs, React Native from akashmittal.com