9951 explained code solutions for 126 technologies


cGet the length of a string


#include <string.h>
strlen(x);ctrl + c
include <string.h

Name of library to be included

strlen(x)

Function to get the length of x (note: the function does not count the terminating character '\0')