fork download
  1. #include <stdio.h>
  2. #include<string.h>//header file for string functions
  3.  
  4. int main()
  5. {
  6. char website_name[] ="LetsLearnCS";//string initialization
  7. int len;//len is of int type to store length of string
  8. len = strlen(website_name);//function call
  9. printf("The length of string is %d",len);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
The length of string is 11