M
marko
I was reading page 131 in K&R C 2nd ed. book.
In page 63,
"The commas that seperate function arguments, variables in declarations, etc
are not comma operators, and do not guarantee left to right evaluation."
and bottom of page 131 there's example of
struct rect r, *rp = &r;
also in page 216, near bottom,
int i, *pi, *const cpi = &i;
my question is if comma in declaration does not gurantee left to right
evaluation, how did in examples latter valuables declared and intialized to
value of previous valuables on same line?
couln't the *rp declared before r is declared?
In page 63,
"The commas that seperate function arguments, variables in declarations, etc
are not comma operators, and do not guarantee left to right evaluation."
and bottom of page 131 there's example of
struct rect r, *rp = &r;
also in page 216, near bottom,
int i, *pi, *const cpi = &i;
my question is if comma in declaration does not gurantee left to right
evaluation, how did in examples latter valuables declared and intialized to
value of previous valuables on same line?
couln't the *rp declared before r is declared?