Why You should always use code editor with coloring support

Consider the following code:

it prints:

The problem here is the switch statement that has a default part but it misspelled (defualt instead of default)

Why it is not a compilation error? in C you can write anything if you put colon (:) after – it declares a goto label

so the result is because there is no default section in this switch

Lets see the code with code highlights:

It is easier to notice the difference between the case keyword and the misspelled default

Conclusion:

Always work with editor that support coloring, also use static analysis code tool