3 ms·
I think it's generally a good idea to avoid declaring multiple variables in the same line (unless you have a very good reason). The space you "save" isn't worth
by DrJokepu 14y ago
I think it's generally a good idea to avoid declaring multiple variables in the same line (unless you have a very good reason). The space you "save" isn't worth the maintainability penalty. This is a habit I have from C where
int* a, b
declares "a" as ( int* ) and b as ( int ). Instead, I just write
int *a;
int *b;
- lmm 14y agoIf you get in the habit of writing the * next to the variable then you can't make the mistake. int *a, b, c[]; perfectly clear.