Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Pointer question

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Legro   Members   

122
Like
Likes
Like

Posted 16 October 2001 - 04:13 PM

Is there a difference between: int *num; int * num; int* num; ? If so, could anyone explain?

#2 jaxson   Members   

127
Like
Likes
Like

Posted 16 October 2001 - 04:19 PM

No difference at all. It might be best to use the int *num style though because it reminds you that the ''*'' goes with the ''num'' and not the ''int''.
For instance,
int* num, foo, joe;
might be a little deceptive because the only pointer is "num." The other two are regular integers.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.