Program to find frequency of characters in a string C++

Finding frequency of characters in a string C++ is like:

Let the string is: I am Software engineer

The Frequency if character ‘e’ in this String is: 4

Program to find frequency of characters in a string C++

CODE:

 

OUTPUT:

frequency of characters in a string c++

Program to convert String to Uppercase C++

Write a Program to convert string to Uppercase C++.

PROGRAM:

 

OUTPUT:

convert string to uppercase c++

Program to convert string to lowercase c++

Write a Program to convert string to lowercase C++ without using library function tolower( ).

PROGRAM:

 

OUTPUT:

convert string to lowercase c++

Program to Reverse String C++

Write a Program to Reverse a String in C++.

Reversing a number is quite easy task, see this to reverse a number

Program to reverse a number

To reverse a String we just exchange the first character with last character till we reach the mid of the string.

Program to Reverse String C++:

 

OUTPUT:

reverse string c++

Program to check whether String is palindrome or not C++

A simple program to check whether String is palindrome or not C++

PROGRAM:

 

OUTPUT:

string is palindrome or not c++

Write a Program to concatenate strings C++

A simple program to concatenate String c++ without using the library functions.

  • Input 2 strings.
  • Go to end of one string and add second after it.
  • put NULL ‘’ at the end of the string.

 Program to concatenate strings C++

 

OUTPUT:

concatenate strings C++