AD (728x90)

GoogleOnline Exam Test Seminar Sparkz IncEasy Link Exchange

Saturday 31 May 2014

Write C programs that use both recursive and non-recursive functions To solve Towers of Hanoi problem.

Seminars and Jobs information
Share it Please
/* Write C programs that use both recursive and non-recursive functions
  To solve Towers of Hanoi problem.*/

#include<conio.h>
#include<stdio.h>

/* Non-Recursive Function*/
void hanoiNonRecursion(int num,char sndl,char indl,char dndl)
{
 char stkn[100],stksndl[100],stkindl[100],stkdndl[100],stkadd[100],temp;
 int top,add;
 top=NULL;
For more Click

Written by

Java Basic Point blog is created for the MCA,M.Tech,B.Tech and Graduate students.So visit and get the benifits from this blog.

0 comments:

Post a Comment

© 2013 Learning Java. All rights resevered. Designed by Templateism