Multidimensional Arrays
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
Yes of course you can. Here is a simple example:
int example[2][2] = { {1,1}, {2,2}};
int example[2][2] = { {1,1}, {2,2}};
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement