Q. What are the elements present in the array of the following C code?

Code:
int array[5] = {5};
  • (A) 5, 5, 5, 5, 5
  • (B) 5, 0, 0, 0, 0
  • (C) 5, (garbage), (garbage), (garbage), (garbage)
  • (D) (garbage), (garbage), (garbage), (garbage), 5
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5, 0, 0, 0, 0

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
354
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yashika
Publisher
πŸ“ˆ
92%
Success Rate