arr[1] [2]
what 1 represents
what 2 represent
where cols or rows go?
arr[1] [2]
what 1 represents
what 2 represent
where cols or rows go?
but you could see that array declared like thisCode:int nums[3][4] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11}; printf("%d\n", nums[2][3]); //This will print 11 printf("%d\n", nums[1][2]); //This will print 6 printf("%d\n", nums[0][1]); //This will print 1
Code:int nums[3][4] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
Last edited by carrotcake1029; 12-18-2008 at 01:36 PM.
thanks
C uses row major order:
Array[row][column]
The only function I know of in C that uses column major order is the old
gotoxy(column, row),
Windows continues with that same order, in some screen oriented functions.