About array accessing!

hi all
I've been stuck on arrays because I'm a newbie to arduino as well as coding. I've a query regarding d same.
I've 3 arrays which are two-dimensional which i have to send it serially out of arduino.
Say 3 arrays are array1[1][2],array2[4][2],array3[2][2]. what Im supposed to do is send array elements one by one serially in the order of
array1[][] elements, then only first row of array2[][] elements n then send array3[][] elements. and second time array1[][] elements, then only second row of elements, then its array3[][] elements. Please guide me how should i accomplish this. :roll_eyes: :roll_eyes:

Please guide me how should i accomplish this.

Usually, people use the IDE or their favorite text editor to write the code.

What have you tried? What went wrong?

Looks like one 3-dimensional array to me.

Sounds like homework!

Mark

alpha89:
Say 3 arrays are array1[1][2],array2[4][2],array3[2][2].

What's the point of an array of size one?

Alpha89:

Perhaps this simple overview will help:
http://opensourcehardwarejunkies.com/tutorial-20-multi-dimensional-arrays-aka-matrix/

With multidimensional arrays, it is all about the indexes.

Ray

@Paul:

Usually, people use the IDE or their favorite text editor to write the code.
What have you tried? What went wrong?

I really, really must stop drinking coffee when I read your remarks... too funny.

Thx for all ur replies

@Paul I think this is not the right place to crack a joke. Hope you know that.
@Nick Gammon So I'm actually confused between 2D n 3D arrays :confused:
@mrburnette thx for the link, I have to look upon it :slight_smile:

@Nick Gammon So I'm actually confused between 2D n 3D arrays :confused:

This is a 1D array:  int foo [10];

This is a 2D array: int foo [5] [8];

This is a 3D array: int foo [4] [6] [10];

This is a 4D array: int foo [3] [7] [2] [8];

And so on.