What happens if the number of initializing values is greater than the dimension specified for the array?
Answers
Answered by
2
In java if you declare an array of size n and try to insert n+1 values then an Exception would be thrown known as ArrayOutOfBounds Exceptions.
In C, Generally Segmentation Fault Occurs.
Similar questions