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

Code Example 1

int foo [5];

Code Example 2

string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com