undefined

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

For-Loops - Part II

#include <iostream>
using namespace std;
int main() {
int an_array[10];
int i = 0;
for (auto &element : an_array) {
element = i;
++i;
}
for (auto &element : an_array) {
cout << element << ' ';
}
cout << endl;
return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content