Example: C++ array // array.cc // First arrays example #include using namespace std; int main() { int myArray[ 50 ]; int i; for ( i = 0; i < 50; i++ ) { myArray[ i ] = i; cout << "\n" << i << " = " << myArray[ i ]; } cout << "\n" << myArray[ 50 ]; // fencepost error return 0; }