In C, to access 2-D arrays, we use the format array[i][j]. But when I accidentally typed array[i , j], it still compiled and returned a small integer value (35 for i = 5 and j = 7 and 0 for i = 5 and j = 8). I know that for 2-D arrays, using a single [i] will return the address of the ith element, but can the address value be so small even for modern systems with GBs of RAM ? Also, how did GCC compile and interpret [i , j] ? I'm using GCC with Cygwin terminal on Windows 10 64-bit system. Here is the statement :
printf("\n With maximum weight : %d", table[no_of_items , w]);