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