add the text in definition of Array. (#30662)
* add the text in definition of Array. add the text " by adding an index to a unique identifier" after "An array is a series of elements of the same data type which are stored in contiguous memory locations and can be referenced individually". * fix: changed c++ to cpppull/31683/head^2
parent
96fa4288f6
commit
db6756aaa2
|
@ -13,9 +13,8 @@ For example, an array containing 5 integer values called numbers is declared lik
|
|||
int numbers [5];
|
||||
```
|
||||
|
||||
Initializiation:
|
||||
Initialization with values:
|
||||
```cpp
|
||||
//Initialization with values:
|
||||
int numbers [5] = {1, 2, 3, 4, 5};
|
||||
//When initializing an array with values, the first value will be stored as the first element, the second value will be stored as the second element, ect... so the first element in this array is the value 1, and the third element is the value 3.
|
||||
|
||||
|
|
Loading…
Reference in New Issue