221k views
11 votes
o access an array element, use the array name and the element's ________. a. data type b. subscript c. value d. name e. None of these

1 Answer

4 votes
Depends, it could be name, but it depends on how you are accessing the array.

Personally, I’d say None of them, since you access an array element/item with an index (the number that the element can be referred with).

E.g. In Python…

arr = [“a”, “b”, “c”]
print(arr[0] == “a”) # Output: “True”
User Alicea
by
4.5k points