Finding the Length of String
One of the most general operations on String is to find the length/size of a given string. Length is defined as the number of characters in a string is called the length of that string.
There are two ways to concatenate two strings:
a) Length of string without using any inbuilt methods:
Below is the algorithm for finding the length of two strings:
1. SET LEN = 0 AND I = 0.
2. Repeat Steps 3 to 4 while STRING[I] is not NULL:
3. LEN = LEN + 1.
4. SET I = I + 1.
5. Exit.
Contact Us