0

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

2
  • 4
    Sounds like homework... what is the problem you are trying to solve? Commented Oct 22, 2011 at 11:04
  • 4
    (e) None of these. (a) - (d) aren't syntactically correct or meaningful in C. Commented Oct 22, 2011 at 11:05

1 Answer 1

2

The answer is : e) , None of these.

For better understanding read this : Arrays and pointers in C

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.