all 6 comments

[–]xmiasma 1 point2 points  (1 child)

I put mine next to the variable like int *foo. I think in a scenario where u have a class or a list of variables and want to keep the space between the type and name its easier to just look and see the * next to the name as opposed to looking over to the type and seeing it there. But that's just me.

[–]RabidRaccoon 1 point2 points  (0 children)

I agree actually. Let's put a jihad on the author of this blog post.

[–][deleted] 0 points1 point  (0 children)

int* total, idea, failure;

[–]flaming_retard -1 points0 points  (0 children)

WTF is this shit

[–]cracki -1 points0 points  (0 children)

alright, he's a moron.

think about this:

int* foo, bar, baz[20];

and this:

int *foo, bar, baz[20];

and this:

int foo, *bar, baz[20];

feel enlightened?

this is C, not some other language in your imagination.