#includestdio.h
void TOH(int n,char x,char y,char z) {
if(n0) {
TOH(n-1,x,z,y);
printf("
%c to %c",x,y);
TOH(n-1,z,y,x);
}
}
int main() {
int n=3;
TOH(n,'A','B','C');
}
What is the output of the following c program

Posted on by