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
πŸ’¬ Discuss
βœ… Correct Answer: (D) a[0] is the first element
Explanation: Arrays in C are 0-indexed, so the first element is a[0].
Explanation by: Mr. Dubey
Arrays in C are 0-indexed, so the first element is a[0].

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
71
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate