Learn to Program with ZedLX

Free Online Programming Course for Beginners

Arrays [4/11]

This program creates an array a containing three integers.

It then attempts to print four elements from the array a.

Since the array only has three elements, trying to access the fourth element results in a runtime error.

Loading...