Hello there. Im new to the forum, this is my first post, it will be quick i guess =]
I want to read an array in a different order and cant think the algh to do that. Heres what i wanna do in a [3][3] simple example. The array AWAYS will be a square. (x=y)
Code:
int array[3][3] = {{4,2,1},
{7,5,3},
{9,8,6}};
Lets say i want to printf() the array number in the normal order ( 1 2 3 4... ). How could i do the algh that does this ?
This way i could generate 5 lines.
1
2 - 3
4 - 5 - 6
7 - 8
9
and that is what im after. Thanx for any replys.
[]īs Ziden