b=a++ + ++a;
a++ and ++a?
Post a Reply
|Oldest Newest Rating|
· November 14, 2015
Not 100% sure what you're wanting but I presume you're after the difference between them both.
i++ would increment i after that part of the code whilst ++i would increment during the code.
I used C++ rather than C but the concept is the same
|0||c student · November 15, 2015|
· November 16, 2015
thank you c student I think it's the best answer:"
C has the concept of undefined behavior, i.e. some language constructs are syntactically valid but you can't predict the behavior when the code is run."
One of the most popular languages of all time.
|Bucky Roberts Administrator|