String Programs
1.Input and print a string
Write a program to input a string from the user and print it.
2.Find the length of a string
Write a program to find the length of a string without using strlen().
3.Copy one string to another
Write a program to copy one string to another using a loop (do not use strcpy()).
4.Compare two strings
Write a program to compare two strings and print whether they are equal or not (without using strcmp()).
5.Count vowels, consonants, digits, and spaces in a string
Write a program to count how many vowels, consonants, digits, and white spaces are present in a string.
6.Convert string to uppercase and lowercase
Write a program to convert a string to uppercase and lowercase without using strupr() or strlwr().
7.Reverse a string
Write a program to reverse a string using a loop.
8.Check if a string is a palindrome
Write a program to check whether a string is a palindrome (same forward and backward).
9.Concatenate two strings
Write a program to concatenate two strings without using strcat().
10.Remove spaces from a string
Write a program to remove all spaces from a string.