Hi I am trying to print a binary search tree using a while loop and a stack. While I know that this is easier to do using recursion, for the sake of it I would prefer to do it this way and I keep running into either an infinite loop or seg fault. Can anyone here please tell me how to do this? Thanks in advance!
Lazarrus 0 Newbie Poster
alwaysLearning0 39 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.