String
The
String is Collection of the Characters or Array of Character. Whenever we are
entering the string value, at that time the interpreter will put the NULL
Character automatically in last of the string. Each and every string will
terminated with NULL (\0) character..
String Related Functions
proto-type: <string.h>
strlen à Length
of the String.
strlen(string);
strrev à Reverse
of the String.
strrev(string);
strcat à To
Concatenate 2 Strings.
strcat(string1,string2);
strlwr à To convert Lower case String.
strlwr(string);
strupr à To
convert uppercase String.
strupr(string);
strcpy à To
copy a string.
strcpy(dest,source);
strcmp à To
Compare 2 Strings.
strcmp(string1,string2);
gets() à To
Get the String Value from User.
gets(strng-var);
puts() à To
print the String Value to output device.
puts(string-var);
No comments: