You are given a possibly empty array of char
s named symbols
and
an int
variable i
.
If i
represents a valid index in the array, print out the value of the
element at that index. Otherwise, print out "Invalid index"
.
Stuck? You may find these lessons helpful: