程序填空。按照要求补充内容使程序完整,并将补充内容填入答题卡相应代

include < stdio . h >

void itoa ( long i , char * s ){ if (¡==0) return ;

  • S =①;
    itoa (②);}int main (){
    long n ;
    char str [7]="",
    scanf ("% ld ",& n );
    itoa ( n , str +5);
    printf ("% s ", str );}
#include<stdio.h>
void itoa(long i,char *s)
{
int n;
if(i==0)
return;
*s=‘0’+i%10;
itoa(i/10,s-1);
}
int main()
{
long n;
char str[7]="";
scanf("%ld",&n);
itoa(n,str+5);
printf("%s",str);
return 0;
}

①是 ‘0’+i%10
②是 i/10,s-1