Array 2 Flashcards
Each item stored in an array is called an _____.
Element
Location of each element
Index
Index starts with _
0
______is used to create an
array with data type and value list specified in its arguments.
array(data_type, value_list)
5 Basic operations supported by an array
Traverse, Insertion, Deletion, Search, Update
Print all the array elements one by one.
Traverse
Adds an element at the given index.
Insertion
Deletes an element at the given index.
Deletion
Searches an element using the given index or by the value.
Search
Updates an element at the given index.
Update
_________are the codes that are used to define the type of
value the array will hold.
Typecode
Represents signed integer of size 1 byte/s
b
Represents unsigned integer of size 1 byte
B
Represents character of size 1 byte
c
Represents signed integer of 2 bytes
i