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
Hemanath 2018-11-17 09:02:46 +05:30 committed by Aditya
parent bb2ff5890f
commit 29757050ef
1 changed files with 5 additions and 0 deletions

View File

@ -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];
```