Member 10795900 wrote:
I'm still a beginner and don't really know how to use the debugger but I tried using printf statements and still didn't understand how it got those symbols into the stack
So, here is my advice: stop doing all you are doing and learn using the debugger.
You will find the description of the use of the debugger in the documentation of the IDE you use, whatever it is. Don't worry, it is easy enough, and can give you a lot more understanding on how programming works in general.
Doing any further development without the debugger simply makes little to no sense. You should better use the debugger in all cases you have even a little concern of your runtime behavior. You should also use the debugger before asking your questions on CodeProject.
—SA