void inverse1(char* ch)
    {
    int i = 0;
    int j = strlen(ch)-1;
    while (i < j)
    {
    char temp = ch[i];
    ch[i] = ch[j];
    ch[j] = temp;
    i++;
    j—;

    1. }<br /> return;<br />}<br />void inverse(char* ch)<br />{<br /> char* ftemp = ch;<br /> char* btemp = ch + strlen(ch) - 1;<br /> //printf("%c\n", btemp);<br /> while (ftemp < btemp)<br /> {<br /> char temp = *ftemp;<br /> *ftemp = *btemp;<br /> *btemp = temp;<br /> ftemp++;<br /> btemp--;<br /> }<br /> return;

    }
    int main1()
    {
    char ch[] = “hello world”;
    inverse(ch);
    printf(“%s\n”, ch);
    return 0;
    }