Jump to content

  • Log In with Google      Sign In   
  • Create Account

Pointer question


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   -  Reputation: 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?

Sponsor:

#2 jaxson   Members   -  Reputation: 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.



PARTNERS