helloo alll,
i am new to this C board. and i am very basic to this language. and i hope u all will help me out to know more about this. any way i have quick question about pointer,how do access the 2d array using the pointer arithmatic. and this is what my approch

Code:
for(i=0;i<2;i++)
   {
      for(j=0;j<3;j++)
      {
         printf("%d\n",*(a+i*3+j));
      }
   }
outut
Code:
2293584
2293596
2293608
2293620
2293632
2293644
which give me the address instead of values

is this way of accessing the elements
Code:
*(base address + row(i) * no.ofcol + col(j))
but when i change this
Code:
printf("%d\n",*(*a+i*3+j));
it gives me the proper output expecteed

can any one explain me or if i am wrong correct me please

thax

-onthewaytoC