Knowledge in Introduction to Strings

STRING MANIPULATION FUNCTIONS

This file contains the concept of Strings.Unlike arrays we do not need to print a string, character by character. The C language does not provide an inbuilt data type for strings but it has an access specifier ā€œ%sā€ which can be used to directly print and read strings.In fact, C's only truly built-in string-handling is that it allows us to use string constants (also called string literals) in our code. Whenever we write a string, enclosed in double quotes, C automatically creates an array of characters for us, containing that string, terminated by the '\0' character.

Arrays and strings

An array is a collection of like variables that share a single name. ... Usually, the array size is fixed, while strings can have a variable number of elements. Arrays can contain any data type (char short int even other arrays) while strings are usually ASCII characters terminated with a NULL (0) character.