Check out example codes for "take input from user in array c++". It will help you in understanding the concepts better.

Code Example 1

int x[6];

Code Example 2

// declare and initialize an array without defining size
int x[] = {19, 10, 8, 17, 9, 15};

Learn ReactJs, React Native from akashmittal.com