Reverse a string using a recursive function

后端 未结 5 1867
悲哀的现实
悲哀的现实 2021-01-22 09:10

I am currently studying C and I can\'t get past this exercise. I must create a recursive function to reverse string1 into string2. Here is my code. I w

5条回答
  •  失恋的感觉
    2021-01-22 09:59

    i recommend using library , size=strlen(array) in stead of

    for(i=0;string1[i]!='\0';i++)
    n++;
    

    to count how many characters in arra

提交回复
热议问题