Multidimensional Arrays

Started by
1 comment, last by Tokiko 19 years, 12 months ago
I was doing a C++ tutorial and it was showing how to give values to an array when declaring it like this: int firstarray[] = {5, 10, 15}; Well I want to know how to do the same for multidim arrays. Im not sure if you can do it, so could someone help me out. Thanks
Advertisement
Yes of course you can. Here is a simple example:

int example[2][2] = { {1,1}, {2,2}};
Ok I see how it works, thanks a lot.

[edited by - Tokiko on April 22, 2004 2:02:10 PM]

This topic is closed to new replies.

Advertisement