Check out example codes for "c error: array must be initialized with a brace-enclosed initializer". It will help you in understanding the concepts better.

Code Example 1

int array[10] = { 0 };

Learn ReactJs, React Native from akashmittal.com