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
8 months agoDenise
8 months agoStefan
8 months agoGladis
9 months agoElli
9 months agoLucy
9 months agoPura
9 months agoWillow
9 months agoJolanda
10 months agoFrancis
10 months agoTruman
10 months agoRickie
10 months agoHayley
10 months agoAshley
1 year agoGaynell
1 year 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
1 year agoJutta
1 year agoIra
1 year agoDaniela
1 year agoDelpha
1 year agoAlisha
1 year ago