Q. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

  • (A) The array size would appropriately grow.
  • (B) The program may crash if some important data gets overwritten.
  • (C) The compiler would report an error.
  • (D) The element will be set to 0.
πŸ’¬ Discuss
βœ… Correct Answer: (B) The program may crash if some important data gets overwritten.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
225
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate