I understand this code.
int a[5];
int b;
for (b=0;b<5;b=b+1)
int a[b];
This should take every element of the array a and set it to 1,2,3,4,5.
Great. Now for the big question. How would you work this?
int a [5][3];
And make the first element of 5 all zeros and the second element of 3 equal
to 1,2,3 ? I don't know how to work with a 2 dimensional array.
Bill
int a[5];
int b;
for (b=0;b<5;b=b+1)
int a[b];
This should take every element of the array a and set it to 1,2,3,4,5.
Great. Now for the big question. How would you work this?
int a [5][3];
And make the first element of 5 all zeros and the second element of 3 equal
to 1,2,3 ? I don't know how to work with a 2 dimensional array.
Bill
Comment