Computer Science, asked by karantagra8891, 1 year ago

What happens if the number of initializing values is greater than the dimension specified for the array?

Answers

Answered by drmalik021
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