String

C++ Program to Concatenate Two Strings

Here you will get C++ program to concatenate two string without using library function. Below program will read two strings from user and then concatenate them to form third string. Output Enter first string:Hello Enter second string:World The concatenated string is HelloWorld

C++ Program to Reverse a String

Here you will get C++ program to reverse a string. The user is asked to enter a string and then the reverse of the string is displayed. For example: Input String: hello Output String: olleh  C++ Program to Reverse a String   Output Comment below if you are facing any difficulty to understand above program.

C++ Program to Find Length of String Without Using Library Function

Here you will get C++ program to find length of a string without using library function. We iterate through the string until null character ‘\0’ is encountered and increase a counter variable for each iteration. Finally print the counter variable, it contains the length of string. Output Enter a string:hello hi Length of the string …

C++ Program to Find Length of String Without Using Library Function Read More »