\ No newline at end of file
diff --git a/arrays/index.html b/arrays/index.html
index 7f29515..62d0e5c 100644
--- a/arrays/index.html
+++ b/arrays/index.html
@@ -1,4 +1,4 @@
- Arrays - Learn C++
Arrays are commonly used to store multiple values. It's one of the basic data structures. We can use it to model a list/array/collection of items. Say, an array of cellphone numbers, an array of first names, etc.
To declare an array in C++, we need to specify 3 things, using the square bracket notation.
Arrays are commonly used to store multiple values. It's one of the basic data structures. We can use it to model a list/array/collection of items. Say, an array of cellphone numbers, an array of first names, etc.
To declare an array in C++, we need to specify 3 things, using the square bracket notation.
Data Type
Size
Name of the array
For example,
floatscores[5];
To initialize values in the array during declaration, we can use the curly bracket notation.
floatscores[5]={90.5,88,75.5,89,95.5}
Or simply omitting the size, the compiler is smart enough to count the number of values to be inserted.
floatscores[]={90.5,88,75.5,89,95.5}
We can access each of the values in an array by its index, using the square bracket notation. C++ is zero-indexed, meaning the first value in the array has an index of 0.
For example, to retrieve the second scores from the scores array, we can simply