Q. Which function is used to get the length of an array?

  • (A) count()
  • (B) sizeof()
  • (C) length()
  • (D) Both option1 and option2
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both option1 and option2
Explanation: count() and sizeof() both return the number of elements in an array.
Explanation by: Rati Dubey
count() and sizeof() both return the number of elements in an array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
88%
Success Rate