1 const int arraysize = 10;
2 int a[arraysize] = {1, 2, 3, 6, 8, 5, 5, 0, 2, 7};
3 int b[arraysize] = {1, 2, 3};
4 int c[arraysize] = {};
5
6
7 for(int i = 0; i < arraysize; ++i) {
8 std::cout << a[i] << ' ' << b[i] << ' ' << c[i] << std::endl;
9 }
10
11This outputs
12
131 1 0
142 2 0
153 3 0
166 0 0
178 0 0
185 0 0
195 0 0
200 0 0
212 0 0
227 0 0
23