Check out example codes for "array syntax in c++". It will help you in understanding the concepts better.

Code Example 1

int foo[] = { 10, 20, 30 };
int foo[] { 10, 20, 30 };

Code Example 2

int foo [] = { 16, 2, 77, 40, 12071 };

Code Example 3

int bar [5] = { 10, 20, 30 };

Learn ReactJs, React Native from akashmittal.com