String Practice Worksheet (40–60 Questions)
1. Write a program to find the length of a string without using strlen().
2. Reverse a string without using strrev().
3. Check whether a string is palindrome.
4. Count vowels and consonants in a string.
5. Count digits, spaces, and special characters.
6. Convert string to uppercase without using strupr().
7. Convert string to lowercase without using strlwr().
8. Toggle the case of each character.
9. Copy one string into another without strcpy().
10. Concatenate two strings without strcat().
11. Compare two strings without strcmp().
12. Count number of words in a sentence.
13. Remove all spaces from a string.
14. Remove extra spaces (multiple spaces → one space).
15. Count frequency of each character.
16. Find the first non-repeating character.
17. Remove all vowels from a string.
18. Count number of alphabets, digits, and symbols.
19. Check if two strings are anagrams.
20. Find the largest word in a string.
21. Find the smallest word in a string.
22. Reverse each word in a sentence.
23. Print words in reverse order.
24. Replace all vowels with '*'.
25. Replace substring within a string.
26. Find substring occurrences.
27. Check whether a character exists in a string (without strchr).
28. Split a string into words manually.
29. Count occurrences of a particular character.
30. Sort characters of a string alphabetically.
31. Sort words of a sentence alphabetically.
32. Remove duplicate characters from a string.
33. Find the most frequent character.
34. Check if a string contains only digits.
35. Check if a string contains only alphabets.
36. Convert a string to title case.
37. Convert a sentence into camelCase.
38. Validate a password using string rules.
39. Count uppercase and lowercase characters.
40. Separate alphabets, digits, and symbols into different strings.
41. Implement strstr() manually.
42. Implement strcmp() manually.
43. Implement strcpy() manually.
44. Implement strcat() manually.
45. Check if two strings are rotations of each other.
46. Remove the nth occurrence of a word.
47. Extract substring from given position and length.
48. Convert Roman numeral string to integer.
49. Check if a string follows valid email format.
50. Generate all permutations of a string (advanced).