Recursion ascii subsequences--doubt

sir how do we place ascii value of letters for 2nd recursive call?
link to ques–https://hack.codingblocks.com/contests/c/457/355 1

#include
#include <string.h>
#include <math.h>
using namespace std;

void sub( char* in ,char * out , int i,int j);

int main()
{
char a[100],b[100];
cin>>a;
cout<<pow(3,strlen(a))<<endl;
sub(a,b,0,0);
return 0;
}

void sub( char* in ,char * out , int i,int j)
{
if(in[i]==’\0’)
{ out[j]=’\0’;
cout<<out<<" ";
return;
}
sub(in,out,i+1,j);

int x=in[i];
out[j]=x;
sub(in,out,i+1,j+1);

out[j]=in[i];
sub(in,out,i+1,j+1);
}

** Use Ascii value
https://ide.codingblocks.com/#/s/14985

sir if i want to store ascii value of in[i] into out[j] where both are char arrays…how do i do it

You can’t do just by assigning the ASCII value .You have to take out as an array of strings because ASCII will hav 2 digits which you can’t store it as a character so you have to take a string and store it’s digits in it.
I.e. if you want to store the ASCII value of ‘a’ then first do these
int value=‘a’;(so you have 97 in value)
Traverse the whole digits of value and save the digits in array at every iterations