Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualFlyingDutchman

Posted 10 August 2012 - 10:31 AM

struct Some_Event** events = NULL, *event;

is a good example for one importat issue to remember: the * doesnt jump over to the next variable


so if u do

int *a, b, *c

you create an int pointer a, a regular int b and an another int pointer c

can be quite confusing.

#3FlyingDutchman

Posted 10 August 2012 - 10:31 AM

struct Some_Event** events = NULL, *event;

is a good example for one importat issue to remember: the * doesnt jump over to the next variable


so if u do

int *a, b, *c

you create an int pointer a, a regular int b and an another int *c

can be quite confusing.

#2FlyingDutchman

Posted 10 August 2012 - 10:30 AM

struct Some_Event** events = NULL, *event;

is a good example for one importat issue to remember: the * doesnt jump over to the next variable


so if u do

int *a, b, *c

you create a int pointer a, a regular int b and a another int *c

can be quite confusing.

#1FlyingDutchman

Posted 10 August 2012 - 10:30 AM

this is a good thing for

struct Some_Event** events = NULL, *event;

one importat issue to remember: the * doesnt jump over to the next variable


so if u do

int *a, b, *c

you create a int pointer a, a regular int b and a another int *c

can be quite confusing.

PARTNERS