Always initialize variables in C

Viewed 4515

Some programmers say that you should always declare all variables in a beginning of a sequence (function) first in C although it is not necessary anymore since C99. Is it also a good idea to initialize all variables at the beginning or is it a waste of processor time?

5 Answers
Related