6.6k views
2 votes
I need help on this, need answer asap.

I need help on this, need answer asap.-example-1
User Rvalvik
by
8.5k points

1 Answer

4 votes

Answer:

int main() {

int _2dArray[32][32];

for (int i = 0; i < 32; i++) {

for (int j = 0; j < 32; j++) {

_2dArray[i][j] = j + i * 32;

}

}

return 0;

}

Step-by-step explanation:

Here is a generic C/C++ 2d array traversal and main function example. The rest you'll have to figure out based on what kind of app you're making.

Good luck!

User JonnyJD
by
8.0k points

No related questions found