Saturday, September 5, 2020

debugging tool: printf() - use to poke around and see what is going on inside your computer


printf() is a useful tool for debugging




for example:

#include <stdio.h>

int main(void)
{

for(int i =0; i<=10;i++)
{
printf("i is now %i\n", i);  //debug line
printf("#\n");
}

}


No comments:

Post a Comment