In this section, you will learn how to determine the length of a String in C. You can see in the given example, we have declared a string and initialize a variable i to 0. The while loop will increment the value of i till it reach the string terminating character or up to the last letter of the string value.
Here is the code:
Output will be displayed as:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial