Skip to content

Commit 3b14daa

Browse files
authored
Update Array.md
1 parent 3f962a1 commit 3b14daa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Array.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Array may be defined abstractly as finite order set of homogeneous elements. So
1515
In computer programming, the most of the cases requires to store the large number of data of similar type. To store such amount of data, we need to define a large number of variables. It would be very difficult to remember names of all the variables while writing the programs. Instead of naming all the variables with a different name, it is better to define an array and store all the elements into it.
1616

1717
## How to declare an array??
18-
In C :
1918
```c
2019
dataType arrayName[arraySize];
2120
```
@@ -25,8 +24,6 @@ int a[5];
2524
```
2625
Here, we declared an array, a, of integer type. And its size is 5. Meaning, it can hold 5 integer values.
2726

28-
For Python :
29-
```python
30-
a = [1, 2, 3, 4, 5]
31-
```
32-
Declaring array in python is simple. Writing elements in square brackets can form an 1 Demensional array.
27+
It's important to note that the size and type of an array cannot be changed once it is declared.
28+
29+
## How to initialize an array?

0 commit comments

Comments
 (0)