1 string exercise 1 write a c program to find length

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
String Exercise 1. Write a C++ program to find length of a string. 2. Write a C++ program to copy one string to another string. 3. Write a C++ program to concatenate two strings. 4. Write a C++ program to compare two strings. 5. Write a C++ program to convert lowercase string to uppercase. 6. Write a C++ program to convert uppercase string to lowercase. 7. Write a C++ program to toggle case of each character of a string. 8. Write a C++ program to find total number of alphabets, digits or special character in a string. 9. Write a C++ program to count total number of vowels and consonants in a string. 10. Write a C++ program to count total number of words in a string. 11. Write a C++ program to find reverse of a string. 12. Write a C++ program to check whether a string is palindrome or not. 13. Write a C++ program to reverse order of words in a given string. 14. Write a C++ program to find first occurrence of a character in a given string. 15. Write a C++ program to find last occurrence of a character in a given string. 16. Write a C++ program to search all occurrences of a character in given string. 17. Write a C++ program to count occurrences of a character in given string. 18. Write a C++ program to find highest frequency character in a string. 19. Write a C++ program to find lowest frequency character in a string. 20. Write a C++ program to count frequency of each character in a string.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern