Multi-dimension Arrays

Q

Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

✍: FYIcenter

A
a[i] == *(a+i)
a[i][j] == *(*(a+i)+j)
a[i][j][k] == *(*(*(a+i)+j)+k)
a[i][j][k][l] == *(*(*(*(a+i)+j)+k)+l)

2007-02-26, 6477👍, 0💬