Using C printf Statement to Debug an application
There are many ways to debug a program, perhaps the most elementary is using a printf() statement to show important pieces of information regarding the program execution point, variable value, and loop and branch operation.
The solution also answers the following questions.
How can you use the printf() statement?
Where will you place them?
How is it useful to use #define in aid of printf() debugging?