How strlen function works?

Hi friends, Happy Vinayaka Cheturdi. Today I will explain "How strlen function works?" This strlen function takes the input as string and returns length of string. The logic behind this is "Every string in C end with with '\0' character", So if we count the number of iterations(steps) to reach the end character, That becomes the length of the string. Here is the code: Click here for Demo