1. Basic String Operations
- Write a program to input a string and print its length.
- Write a program to concatenate two strings without using the
strcat()
function. - Write a program to compare two strings without using the
strcmp()
function. - Write a program to copy one string into another without using the
strcpy()
function. - Write a program to reverse a string without using the
strrev()
function.
2. String Manipulation
- Write a program to count the number of vowels, consonants, digits, and spaces in a given string.
- Write a program to remove all vowels from a given string.
- Write a program to check whether a given string is a palindrome or not.
- Write a program to convert a given string to uppercase without using the
strupr()
function. - Write a program to find the frequency of each character in a string.
3. Advanced String Operations
- Write a program to remove all duplicate characters from a string.
- Write a program to count the occurrences of a substring in a given string.
- Write a program to replace a substring in a string with another substring.
- Write a program to find if a string contains only digits.
4. String with Pointers
- Write a program to reverse a string using a pointer.
- Write a program to compare two strings using pointers.
- Write a program to concatenate two strings using pointers.