3 ms·
I agree this is an issue with the C syntax. I always used to write my pointer declarations as: char* p instead of char p That way there was no clash with w
by jdvolz 19y ago
I agree this is an issue with the C syntax. I always used to write my pointer declarations as:
char* p
instead of
char p
That way there was no clash with when you are dereferencing p -
p
Admittedly this approach may not help entirely with more complex examples, like a pointer to a function that returns a point to a function that takes two pointers to void...or something. Indeed having languages that create less accidental complexity is a huge win.
- jdvolz 19y agohmmm... apparently some of stars got removed. Point was that the star goes with the type, not with the variable name, except for dereferencing