#include #include int main() { char horcrux[] = { 'e', 'x', 'p', 'e', 'l', 'l', 'i', 'a', 'r', 'm', 'u', 's' }; // Uncomment below and comment out above to get a "C string". // The above is missing a null terminator, so is not a C string. // The below is a "string literal", so C understands that you want // a string and adds the terminator automatically. // Alternatively, add a null character '\0' to the array literal // above to obtain a C string. // // char* horcrux = "expelliarmus"; printf("The length of the string '%s' is %lu.\n", horcrux, strlen(horcrux)); return 0; }