Code formatting when using pointers

Posted by HD-VRSCA on Stack Overflow See other posts from Stack Overflow or by HD-VRSCA
Published on 2010-05-07T20:31:56Z Indexed on 2010/05/07 20:38 UTC
Read the original article Hit count: 171

Filed under:
|

Is there any reason why the asterisk is next to the object type in this code? I'm a little confused by the way I see this used. Some times it looks like this:

NSString* stringBefore;

and sometimes like this:

NSString *stringBefore;

Is there a difference? Or a right or wrong way to do this?

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c