Thursday, February 11, 2010

Blog #3

Last class we learned about multi dimensional arrays. We talked about how you access information from the 2 dimensional array. When you have an array like int array[3][4], and when you want to access the first item in the second row it would be array[1][0]. Which is the same as array[0][5]. Also when we print the address of array[0][0] and array[1][0] the difference will be 16 because it jumps 4 int. We can also write array[2][3] as *(*(a+2)+3).

No comments:

Post a Comment