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

Code Example 1

#include <iostream>
int main()
{
int myArray[] {2, 4, 6, 8, 10};
for (int i=0; i<5; i++)
{
std::cout << "index: " << i << " - value: " << myArray[i] << "\n";
}
return 0;
}

Learn ReactJs, React Native from akashmittal.com