SJOBS
SJOBS

Reputation: 1

Access to a two-dimensional array in C

I'm learning about arrays in C, and I'm stumped on a homework question.

The array access a[j][k] is equivalent to

a) ((base_type*)a (j*row _ength) + k)
b) *((base_type*)a (j*row_length) + k)
c) *((base_type)a (j*row_length) + k)
d) *((base_type)a (j*row_length))
e) None of these

Upvotes: 0

Views: 128

Answers (1)

COD3BOY
COD3BOY

Reputation: 12092

The answer is : e) , None of these.

For better understanding read this : Arrays and pointers in C

Upvotes: 2

Related Questions