CP String
CP String
IN C PROGRAMMING
Arvind Kyatham
23K81A05G0
Batch-8
CSE-C
PPS
"Strings"
A string is nothing but the collection of the individual array elements or
characters.
String is enclosed within Double quotes.
“programming" is a example of String.
Each Character Occupy 1 byte of Memory.
Size of “programming“ = 11 bytes
String is always Terminated with NULL Character (‘\0′).
char word[20] = “‘p’ , ‘r’ , ‘o’ , ‘g’ , ‘r’ , ‘a’ , ‘m’ , ‘m’ , ‘I’ , ‘n’ , ‘g’ , ‘\0’”
NULL Character