C Programming on String


C Programming on String

» Write a program in C to find the length of a String without using Library Function » Write a program in C to Concatenate two strings » Write a program in C to Copy a String » Write a program in C to Reverse a string using recursion » Write a program in C to compare two string » Write a program in C to Find the number of vowels, consonants, digits and white spaces » Write a program in C to Find the frequency of a character in a string » Write a program in C to Convert an Integer to Character up to 4 digits » Write a program in C to Remove all characters in a string except alphabets » Write a program in C to Sort elements in the lexicographical order (dictionary order) » Write a program in C to convert uppercase string to lowercase string » Write a program in C to convert lowercase string to uppercase string


 

» Write a program in C to find the length of string (number of characters) using strlen() function » Write a program in C to concatenation two string using strcat() function » Write a program in C to appends specified number of characters to the destination string using strncat() function » Write a program in C to copies one string to another string using strcpy() function » Write a program in C to copies only the specified number of characters from source string to destination string using strncpy() function » Write a program in C to searches the occurrence of a specified character in the given string using strchr() function » Write a program in C to searches the last occurrence of the specified character in the given string using strrchr() function » Write a program in C to searches specified string in the given string and returns the number of the characters that are matched in the given string using strspn() function » Write a program in C to searches the given string in the specified main string and returns the pointer to the first occurrence of the given string using strstr() function » Write a program in C to scans the main string for the given string and returns the number of characters in the main string from beginning till the first matched character is found using strcspn() function » Write a program in C to compares two strings and returns an integer value based on the result using strcmp() function » Write a program in C to comparison is limited to the number of characters specified during the function call using strncmp() function » Write a program in C The to compares two strings and returns an integer number based on the result of comparison using strcoll() function