Each element of an array is accessed using an array subscript, which is an
integer value that specifies the position of the element in the array. In C,
array subscripts begin with 0, meaning the first element is accessed using
index 0 and the last element is accessed using index size - 1.

Array subscripts allow direct access to individual elements, making it possible
to read, modify, and process array data efficiently. Care must be taken to ensure
that subscripts remain within valid bounds, as accessing elements outside the
array range results in undefined behavior.
SYNTAX:


arrayName[index];
Previous Next