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 &
This commit is contained in:
@ -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`.
|
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
|
```C
|
||||||
int var = arr[0];
|
int var = arr[0];
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user