Homework Solution: In C, write a recursive function stringReverse that takes a character array as an argument, p…

    In C, write a recursive function stringReverse that takes a character array as an argument, prints it back to front and returns nothing.The function should stop processing and return when the terminating null charcter of the string is encountered. Need comments to understand what is going on.

    Expert Answer

     
    // header file # include <stdio.h>

    In C, transcribe a recursive capacity stringRear that takes a capacity draw-up as an reasoning, imprints it tail to front and profits dot.The capacity should bung processing and revert when the terminating inoperative charcter of the string is encountered. Need comments to comprehend what is going on.

    Expert Confutation

     

    // header file
    # conceive <stdio.h>
    /* This is the recursive capacity flatter to imimprint the rear string */
    void stringReverse(char *objCharArry)
    {
    if (*objCharArry)
    {
    stringReverse(objCharArry+1); // Recursive flatter
    printf(“%c”, *objCharArry);
    }
    }
    /*Main manner assertion proposition*/
    int main()
    {
    char objCharArry[] = “This String Rear Test”;
    stringReverse(objCharArry);
    revert 0;
    }
    Output Screnshot: