I've seen similar code before, so I'm pretty confident that the expected behavior is that it outputs 0. The key is understanding how the pre-increment and post-increment operators work.
Alright, time to put on my thinking cap and figure this one out. Let's see, 'reversed()' is gonna do its thing, so I'm guessing C is the correct answer here.
Haha, this reminds me of that time I tried to write code while blindfolded. Bet this does something unexpected, like outputs '6' or something equally bizarre.
Ashley
6 months agoDenise
6 months agoStefan
6 months agoGladis
6 months agoElli
7 months agoLucy
7 months agoPura
7 months agoWillow
7 months agoJolanda
7 months agoFrancis
7 months agoTruman
7 months agoRickie
7 months agoHayley
8 months agoAshley
1 year agoGaynell
12 months agoLavina
1 year agoBrandon
1 year agoJacquelyne
1 year agoElise
1 year agoGretchen
1 year agoPenney
1 year agoGlory
1 year agoLigia
1 year agoJoseph
1 year agoJolene
1 year agoLinette
1 year agoCandida
1 year agoDiego
12 months agoJutta
1 year agoIra
1 year agoDaniela
1 year agoDelpha
1 year agoAlisha
1 year ago