4 ms·
I agreed with you for about ten years, and then I stopped doing that because of the OPs example but also because idiomatic c and c++ are written this way and I
by greatsuccess 13y ago
I agreed with you for about ten years, and then I stopped doing that because of the OPs example but also because idiomatic c and c++ are written this way and I just decided to stop swimming upstream after reading enough of it.
But it can be very confusing when dealing with dereferences.
So I feel you there. Doing C for 15 years you just get used to it.
- informatimago 13y agoThe OPs example only shows that you should never declare two variables on the same line! This is a rule that's as old as programming, even. int* a; int b;