Write a Program to find the length of a String

Explanation : 
In c or c++ language, here string is an array of characters in older versions of c and  c++, but early as new versions of c++ comes data type 'string' has been introduced.


character is a fundamental data type of c++, therefore we can use character array to represent a string

(Note : 2-Dimension array represents array of string or we can say it groups of string)


Algorithm : 

Step 1 : Define max as a constant value as 10 (max value is depended on you)
Step 2 : Declare an array of character with size max and accept input from user
Step 3 : Take while loop and check the condition
Step 4 : If the value of array of current index is not equal to '\0' ('\0' represents null value at the end of string or char array)
Step 5 : If yes then increase length and index by 1 and go to Step 4
Step 6 : If not go to Step 7
Step 7 : Display Length of String



For program visit my github account the link is below
The link -> https://github.com/siddhantPanchal/youtube-tutorial