0% found this document useful (0 votes)
2 views1 page

Strings

The document contains a list of practice problems focused on C++ string manipulation. It includes tasks such as reversing a string, changing letter cases, capitalizing words, and checking for palindromes. Each problem is designed to enhance understanding and skills in handling strings in C++.

Uploaded by

muntahaimran709
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Strings

The document contains a list of practice problems focused on C++ string manipulation. It includes tasks such as reversing a string, changing letter cases, capitalizing words, and checking for palindromes. Each problem is designed to enhance understanding and skills in handling strings in C++.

Uploaded by

muntahaimran709
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Practice Problems

Topic: C++ Strings

1. Write a C++ program to reverse a given string.

2. Write a C++ program to change every letter in a given string with the letter
following it in the alphabet (i.e. a becomes b, p becomes q, z becomes a).

3. Write a C++ program to capitalize the first letter of each word in a given string.
Words must be separated by only one space.

4. Write a C++ program to find the largest word in a given string.

5. Write a C++ program to count all the vowels in a given string.

6. Write a C++ program to count all the words in a given string.

7. Write a C++ program to check if a given string is a Palindrome or not.


A palindrome is a word, number, phrase, or other sequence of characters which
reads the same backward as forward, such as madam, racecar.

8. Write a C++ program to change the case (lower to upper and upper to lower
cases) of each character in a given string.
Example:
Sample Input: Pythpn
Sample Output: pYTHON

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy