Add the text "* Arrays can store same data types only. A integer arra… (#21933)
* 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
This commit is contained in:
committed by
Manish Giri
parent
910b1baaf7
commit
7721e34a28
@ -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.
|
||||
|
Reference in New Issue
Block a user