Array selection

i want to select an array within an array. I have read up on how to make an array within an array but to specifically select an array for eg.
int array[3][3] =
{
{1,2,3}
{4,5,6}
{7,8,9}
}

Lets say i would like to select the number '5'. how do i print it out?
std::cout << array[1][1];
A better example might be the number 3:
std::cout << array[0][2];
Feel free to read about multidimensional arrays here:
http://www.cplusplus.com/doc/tutorial/arrays/
Last edited on
Topic archived. No new replies allowed.