arcadevur.blogg.se

What does a mean
What does a mean










what does a mean

Now, what's important to remember (especially with ++a) is that the side effect of actually updating a doesn't have to happen immediately after the expression has been evaluated it only has to happen before the next sequence point (which, in the case of a function call, is after all of the arguments have been evaluated). You would get the output 2, because you're asking for the value of a + 1.

what does a mean what does a mean

You would get the output 1, because you're asking for the current value of a. The expression ++a evaluates to the current value of a + 1 and as a side effect increments a by 1. The expression a++ evaluates to the current value of a and as a side effect increments a by 1.












What does a mean