Computer Science, asked by TbiaSamishta, 11 months ago

What happen if we assign a value to an array element whose subscript exceeds the size of array?


sirfria: Overloading..

Answers

Answered by shizukaa1607
0

Array out of bound error will appear

Answered by aqibkincsem
0

Two things can happen here. Other data maight be overwritten or there will be an error message from the compiler.

But the outcome depends a lot on the program being used, the compiler and the system.

In languages, except C, an exception is thrown. In such cases, Windows is very strict and Linux gives some extra space.

Similar questions