Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

int* p vs. int *p

Name: Anonymous 2009-10-29 0:18

What do you think about the difference between the following declarations? Which do you prefer?

int* p;
int *p;

It's often said the first is C++ style and the second is C style. I prefer C but conceptually the first declaration makes a lot more sense to me. You're defining a variable p of type int*. p is an int*. You dereference it, *p, when you want the int. Makes sense. The second example to me seems like gobbledygook, but it's the way the C authors thought of it, because of this bullshit:

int *p, *q;

So what the fuck is the deal? Can someone who uses "int *p" syntax explain to me what goes through your head when you write that garbage?

Name: Anonymous 2009-10-29 19:32

>>38
>>58
ok, so i googled it and found out it meant you have been trolled. and guess which site was number 1? enyclopedia dramatica (a site run by 4chan).  obviously no one else uses it that way.  it should be YHBTr at least to avoid confusion.

i honestly dont get why you have to use secret acronyms.  anonymous web board were invented so they would be all inclusive, making up acronyms makes it exclusive because i dont know what you mean.  this is the reason i left reddit, and anonymous boards are supposed to avoid that

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List