#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void inverte(char* word, int ini, int fim){
    if(ini > fim)
        return;

    // necessário trocar antes de usar a função recursiva
    char temp = word[ini];
    word[ini] = word[fim];
    word[fim] = temp;
    
    
    inverte(word, ini + 1, fim - 1);
}

int main() {
    
    char *v = "Nichollas";
    int inverte = inverte(v, 0, 9);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: