Relative Content

Tag Archive for cdebugginglinked-listbinary-search-treeavl-tree

How does this single printf() line affects my result?

I was in the middle of building an AVL Tree until this odd thing happened. When I comment this printf() on line 81, my resulting balance factor shows a random(?) number when its actual BF is 0. But, when I uncomment the printf() line, the resulting BF shows 0. How is this happening?

How is this single printf() line affects my result?

I’m in the middle of building an AVL Tree until this odd thing happened. When i comment this printf() on line 81, my resulting balance factor shows random(?) number when it’s actual BF is 0. But, when i uncomment the printf() line, the resulting BF shows 0. How is this happening?