Compound assignment within assignment
I came across this syntax in another person's C code:
foo = (bar += 1);
Is foo assigned the original or new (incremented) value of bar?
foo would be assigned to the incremented value of bar if im correct
Topic archived. No new replies allowed.