I'm starting to read The C Programming Language, and I noticed that the declarations of variables and the assignment of them are on different lines. For example, from page 16:
int c;
c = getchar();
Is there a reason why int c = getchar();
is not written (in general, why assignment is not on the same line as declaration)? It seems to work fine when I run it instead of the former.