请问我这个函数哪里出问题了?用递归实现字符串倒序
#include<stdio.h>2
3 void reverse(char[]);
4
5 int main(void)
6 {
7 char s[] = "abcd";
8 reverse(s);
9 printf("%s\n", s);
10 return 0;
11 }
12
13 void reverse(char s[])
14 {
15 static int i = 0;
16 static int j = 0;
17 if(s[j++])
18 reverse(s);
19 s[i++] = s[j - 1];
20 s[i] = '\0';
21
22
23 }