iterate over array cpp code example Example: how to iterate through array in c++ for(int i=0; i<n; i++) cout<<array[i]<<" " cout<<endl;