Chapter - 9: Arrays

What would happen if you put too few elements in an array when you initialize it?


G
Sections
3
Exercises

1. nothing
2. possible system malfunction
3. error message from the compiler
4. unused elements will be filled with 0’s or garbage 


Ans: 4. unused elements will be filled with 0’s or garbage.


© 2020 Garbage Valuegarbage value logo