Function does not return printf

void correct(r) is declaration and it means – correct is a function that takes r type in arguments and returns void. Just remove void to call function. correct(r). And you need to change chars to char * or const char*.

    const char *c1 = "Cristoforo";
    const char *c2 = "cristoforo";
    const char *c3 = "CRISTOFORO";

Leave a Comment