Fix typo in the explanation print() to printf() (#27881)
* Fix typo in the explanation print() to printf() * Added basic syntax for declaring an array with all its elements as 0 * fix: removed &pull/21809/head
parent
bb2ff5890f
commit
29757050ef
|
@ -57,6 +57,11 @@ int crr[100] = {3};
|
|||
```
|
||||
If you do this, then the first element is going to be `3`, but the rest of them is going to be `0`.
|
||||
|
||||
```C
|
||||
int drr[10] = {0};
|
||||
```
|
||||
If you want to create an array with all the elements as `0`.
|
||||
|
||||
```C
|
||||
int var = arr[0];
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue