Categories
C

String in C

String in C:- A string in C is a character array terminated with a null character. All the string are character array but all the character array is not a string. main() {             char p[]={‘a’,’b’,’c’,’d’};             char q[]={‘a’,’b’,’c’,’d’,’\0’}; } Here p is a character array and q is a string. Anything is written within […]