A

Admin • 833.24K Points
Coach

Q. Which of the following is correct about array indexing?

  • (A) a[5] = 0 is valid for array of size 5
  • (B) a[0] is always the last element
  • (C) a[-1] is valid
  • (D) a[0] is the first element
  • Correct Answer - Option(D)
  • Views: 30
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

Arrays in C are 0-indexed, so the first element is a[0].

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.