- Write a C program to find length of a string.
- Write a C program to copy one string to another string.
- Write a C program to concatenate two strings.
- Write a C program to compare two strings.
- Write a C program to convert lowercase string to uppercase.
- Write a C program to convert uppercase string to lowercase.
- Write a C program to toggle case of each character of a string.
- Write a C program to find total number of alphabets, digits or special character in a string.
- Write a C program to count total number of vowels and consonants in a string.
- Write a C program to count total number of words in a string.
- Write a C program to find reverse of a string.
- Write a C program to check whether a string is palindrome or not.
- Write a C program to reverse order of words in a given string.
- Write a C program to find first occurrence of a character in a given string.
- Write a C program to find last occurrence of a character in a given string.
- Write a C program to search all occurrences of a character in given string.
- Write a C program to count occurrences of a character in given string.
- Write a C program to find highest frequency character in a string.
- Write a C program to find lowest frequency character in a string.
- Write a C program to count frequency of each character in a string.
- Write a C program to remove first occurrence of a character from string.
- Write a C program to remove last occurrence of a character from string.
- Write a C program to remove all occurrences of a character from string.
- Write a C program to remove all repeated characters from a given string.
- Write a C program to replace first occurrence of a character with another in a string.
- Write a C program to replace last occurrence of a character with another in a string.
- Write a C program to replace all occurrences of a character with another in a string.
- Write a C program to find first occurrence of a word in a given string.
- Write a C program to find last occurrence of a word in a given string.
- Write a C program to search all occurrences of a word in given string.
- Write a C program to count occurrences of a word in a given string.
- Write a C program to remove first occurrence of a word from string.
- Write a C program to remove last occurrence of a word in given string.
- Write a C program to remove all occurrence of a word in given string.
- Write a C program to trim leading white space characters in a string.
- Write a C program to trim trailing white space characters in a string.
- Write a C program to trim both leading and trailing white space characters in a string.
- Write a C program to remove all extra blank spaces from a given string.
You may also like
- Basic programming exercises and solutions in C.
- Bitwise operator programming exercises and solutions in C.
- If else programming exercises and solutions in C.
- Switch case programming exercises and solutions in C.
- Conditional operator programming exercises and solutions in C.
- Loops programming exercises and solutions in C.
- Array and Matrix programming exercises and solutions in C.
- Functions and recursion programming exercises and solutions in C.