logoalt Hacker News

kpstoday at 6:16 PM3 repliesview on HN

> int *w;

But some misguided style guides demand the misleading `int* w;`, and then act surprised by `int* w, x`;


Replies

ueckertoday at 8:25 PM

Those style guides would also disallow having multiple declarators in a single declaration.

tom_today at 6:57 PM

I split the difference and write it "int*w".

(Most style guides tell you to declare one name per line anyway...)

show 1 reply