Q:

Using Table 4.12 (p. 166) explain what the following expression does

0

Using Table 4.12 (p. 166) explain what the following expression does:

someValue ? ++x, ++y : --x, --

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The expression

 sameValue ? ++x, ++y : --x, --y

is the same as

(sameValue ? (++x, ++y) : --x), --y

Then it will be easy to notice that whatever `sameValue` evaluated, `--y` will always be evaluated.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now