The difference between n++ and ++n at the end of a while loop? (ANSI C)
The difference between n++ and ++n at the end of a while loop? (ANSIÂ C)
The only difference between n++ and ++n is that n++ yields the original value of n, and ++n yields the value of n after it’s been incremented. Both have the side effect of modifying the value of n by incrementing it. If the result is discarded, as it is in your code, there is no effective difference. If your program is behaving differently depending on whether you write n++; or ++n; it must…
View On WordPress


















