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
10 months agoDenise
10 months agoStefan
10 months agoGladis
11 months agoElli
11 months agoLucy
11 months agoPura
11 months agoWillow
11 months agoJolanda
12 months agoFrancis
12 months agoTruman
12 months agoRickie
12 months agoHayley
12 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