Examveda

What happens when you access an array element out of bounds in C++?

A. The program crashes

B. The compiler throws an error

C. The runtime throws an error

D. Undefined behavior

Answer: Option D


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures