what does the '->' in 'pid->iState' mean?
hi roy,
pid pointer structure , pid->istate reference member of structure called istate.
elsewhere in code definition of structure pid points to, there lots of ways like:
struct {
int istate;
int imax;
// other elements....
} id, *pid; // id structure, pid pointer structure
when code accesses structure directly, can this:
id.istate = 1;
when has pointer structure, this:
pid->istate = 1;
both change value of istate in id structure 1
pid pointer structure , pid->istate reference member of structure called istate.
elsewhere in code definition of structure pid points to, there lots of ways like:
struct {
int istate;
int imax;
// other elements....
} id, *pid; // id structure, pid pointer structure
when code accesses structure directly, can this:
id.istate = 1;
when has pointer structure, this:
pid->istate = 1;
both change value of istate in id structure 1
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > what does the '->' in 'pid->iState' mean?
arduino
Comments
Post a Comment