From 29757050ef010bfffb9c2bf09274e5c564df3002 Mon Sep 17 00:00:00 2001 From: Hemanath Date: Sat, 17 Nov 2018 09:02:46 +0530 Subject: [PATCH] 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 & --- guide/english/c/arrays/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guide/english/c/arrays/index.md b/guide/english/c/arrays/index.md index 6da328c5435..9aabecfb97a 100644 --- a/guide/english/c/arrays/index.md +++ b/guide/english/c/arrays/index.md @@ -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]; ```