Get string length in C language

www‮tual.‬turi.com
Get string length in C language

Find the total number of characters in the string

#include <stdio.h>
#include <string.h>
int main(void)
{
  //variable
  char str[] = "Hello";
  printf("%ld", strlen(str));    //this will give us 5
  return 0;
}
Created Time:2017-08-28 07:04:07  Author:lautturi