Initialise all variablesThis tip submitted by Jia.Lu on 2005-10-05 06:26:18. It has been viewed 48370 times.
Rating of 5.6 with 221 votes
Remember to init them at declaration:
int counter = 0 ;
char strings[MAX] = '\0' ;
char *cp = NULL ;
Help your fellow programmers! Add a tip!
Want to become a C++ programmer? The Cprogramming.com ebook, Jumping into C++, will walk you through it, step-by-step. Get Jumping into C++ today!