char name[7] = "Flavio"; strlen(name);. This function will return the length of a string as an integer value. Working example:
確定! 回上一頁