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
3 months agoDenise
3 months agoStefan
3 months agoGladis
4 months agoElli
4 months agoLucy
4 months agoPura
4 months agoWillow
4 months agoJolanda
5 months agoFrancis
5 months agoTruman
5 months agoRickie
5 months agoHayley
5 months agoAshley
10 months agoGaynell
9 months agoLavina
9 months agoBrandon
9 months agoJacquelyne
10 months agoElise
10 months agoGretchen
10 months agoPenney
10 months agoGlory
10 months agoLigia
10 months agoJoseph
10 months agoJolene
10 months agoLinette
11 months agoCandida
11 months agoDiego
9 months agoJutta
9 months agoIra
10 months agoDaniela
10 months agoDelpha
11 months agoAlisha
11 months ago