previous | index | next

Multidimensional Array Example

Q: What output does the following produce? (Note that table is declared but not used.)

    const int SIZE = 10;
    int table[SIZE][SIZE];
    
    for(int row = 0; row < SIZE; row++) {
        for(int col = 0; col < SIZE; col++) {
            cout << row << "   " << col << endl;
        }
    }


previous | index | next