473,940 views
34 votes
34 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

User Adam Caviness
by
3.0k points

1 Answer

27 votes
27 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 Melo
by
2.9k points