Professional Documents
Culture Documents
Week 01
Week 01
Week 01
01 02
1D Array 2D Array
What’s Array:
Array: are a collection of values that all share the same data type.
• You could have an array of type string that contains a list of student
names, or an array of type int that stores a collection of user ids.
1D Array declaration:
1D Array initilization:
Access the Elements of an Array:
• You access an array element by referring to the index number.