e.g. “Ram” contains ASCII value per location, when we are using strings and then these strings are always terminated by character ‘\0’. We use conversion specifier %s to set any string we can have any string as follows:-
char nm [25]
When we store any value in nm variable then it can hold only 24 character because at the end of the string one character is consumed automatically by ‘\0’.
1. strlen - string length
2. strcpy - string copy
3. strcmp - string compare
4. strups - string upper
5. strlwr - string lower
6. strcat - string concatenate
No comments:
Post a Comment