Duplicate of need some debugging questions in c and c++. Thread closed.