Monday, February 16, 2009

Caution on Common Programming Mistakes

Should your program won't run because of syntax errors, check the following:

1. undeclared variables
2. uninitialized variables
3. undeclared functions
4. using a single equal sign to check equality
5. setting a variable to an uninitialized value
6. extra semi-colons
7. misusing the && and || operators
8. overstepping array boundaries
9. Cases are different

But, if your program does not produce a result that is expected, your program then has logical error, and must review the flow or logic again.

No comments: