when I define a array for example a[n][n],
what are the different between a+i and *(a+i)?
they are all adress.
thank you(I'm a foreigner ,english is bad ^_^)
Printable View
when I define a array for example a[n][n],
what are the different between a+i and *(a+i)?
they are all adress.
thank you(I'm a foreigner ,english is bad ^_^)
a+i is an address of the (i+1)th array stored in a
*(a+i) dereferences the first element in the (i+1)th array. It is not an address unless the arrays are storing addresses.