Answer to Question #44396 in C for vijayasurya
This is the Program. (I have understood how the game works, but not able to understand and trace out the PROGRAM for it.)
void towers(int n, char source, char dest, char aux);
printf("\n Enter the number of disks:");
void towers(int n, char source, char dest, char aux)
printf("\n Move Disk 1 from peg %c to peg %c",source,dest);
printf("\n Move dist %d from peg %c to peg %c\n",n,source,dest);
Please explain how i should trace the program. Also why is the return statement required inside the IF condition? (If i dont give it, it gives me error.) .
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!