Array and there value | Find the value of the array |

int I,j;
int sw=0;
int myArray[2][3];
For(i=0;i<3;i++) j="0;j<2;j++)
{
myArray[j][i]=sw;
sw++;
}
What is value of the sw[1][2]?
Debugging Answer:
Sw[1][2]=5

Debugging Solution:
sw[0][0]=0
sw[1][0] =1
sw[0][1] =2
sw[1][1] =3
sw[0][2] =4
sw[1][2] =5


Related post