4-12.写一个函数itoa,通过递归调用将整数转换成为字符串。
1 #include <stdio.h> 2 #include <stdlib.h> 3 void Itoa(int num, char * s); 4 int main(void) 5 { 6 char s[20]; 7 Itoa(1234567, s); 8 printf("The str now is %s", s); 9 return 0; 10 } 11 12 void Itoa(int n, char * s) 13 { 14 static int i = 0; 15 if(n < 0) 16 { 17 s[i++] = '-'; 18 s[i] = '