From 7721e34a28087b8953e9c17a074d9309b67a4e68 Mon Sep 17 00:00:00 2001 From: vasubansal1033 Date: Sat, 17 Nov 2018 08:36:11 +0530 Subject: [PATCH] =?UTF-8?q?Add=20the=20text=20"*=20Arrays=20can=20store=20?= =?UTF-8?q?same=20data=20types=20only.=20A=20integer=20arra=E2=80=A6=20(#2?= =?UTF-8?q?1933)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add the text "* Arrays can store same data types only. A integer array will not be able to store chars in it." in review. * Fixed grammar --- guide/english/c/arrays-and-strings/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/english/c/arrays-and-strings/index.md b/guide/english/c/arrays-and-strings/index.md index f04781026f..742306cb31 100644 --- a/guide/english/c/arrays-and-strings/index.md +++ b/guide/english/c/arrays-and-strings/index.md @@ -183,6 +183,7 @@ char *strtok(char *str, const char *delim); # Before you go on... ## A Review * Arrays are collections of variables. +* Arrays can only store same data types. An integer array will not be able to store characters in it. * Arrays have separate positions that can be declared with brackets, and accessed with square brackets. * Strings are arrays too, but we can treat them a little differently: they can be declared using double quotes, and printed using %s. * Strings have their own library, `string.h`, which has some handy functions to use.