how to iterate through array in looping manner in c++ code example Example: loop through array c++ for(int i = 0; i < 4; i++) { cout << cars[i] << "\n"; }