Printf with scanf asking for input. Loop error with BST
问题 I have been trying to see why printf does not break the loop after printing the input of the file. The .c file is BST and I am now in the middle of testing whether a tree has been built but can't seem to exit the printf loop. I need the printf loop for the correct output for the code. Any suggestions of why this error is happening. Full code and output is shown. #include "bst.h" #include <stdio.h> #include <stdlib.h> ///Author: Joe W //arbitrary list of temp nodes TreeNode *new_node, *root,