loop trough c++ string array code example Example: loop through array c++ for(int i = 0; i < 4; i++) { cout << cars[i] << "\n"; }