c++ array variable in for loop code example
Example: for loop with array c++
int v[] = {1,2,3,4,5};
for (int n : v)
cout << n << endl;
//make sure to compile with -std=c++11
int v[] = {1,2,3,4,5};
for (int n : v)
cout << n << endl;
//make sure to compile with -std=c++11