C coding debugging tip #1: compile after typing each command

 



Summary

Approach A:

Type many statements at one go.  Then, compile the program.

Approach B:

Type only one statement.  Compile after typing each and every statement.
Approach B is better because programmer just needs to focus only one statement when trying to debug the code.

What is the minimum C code that can run without error?

#include <stdio.h>

void main(void)

{

    

    

}




Post a Comment

0 Comments