what everybody ought to know about string in c.
String in C You will be able to : >> Define string >>Declaration of String >>Initialization of String >>Use string handling function String In C programming , array of character are called strings. A string is terminated by null character /0. Array is the collection of similar data under common name. A common name is the name of string or array.For example: char stringname = "Hello"; Here stringname is common name .We will study String Decleration below Section. C compiler represent above string as below image (string representation) Declaration of String It is declared as: char string_name[size]; E.g: char name[10]; Strings can also be declared using pointer. char *p Initialization of String It can be initialized when they are declared char c[]="abcd"; OR, char c[5]="abcd"; OR, char c[]={'a','b','c','d','\0&