- Initializing the structure member variables while declaring.
- Converting a character Array into String without Appending NULL character.
- Calling the function without declaring the Prototype.
- Declared buffer must be initialized before use.
- Using proper data types when copying functions from one project to another project.
- Multiple definition of a function some times creates a problem when we are browsing the code through tags in some famous editors like vim etc.(NOTE: Enable the function which is currently in use.Comment the other ones).
- Avoid same function names which are already defined in system library.
Monday, March 16, 2009
Common Mistakes in C
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment