Puzzle : simple and funny | Sololearn: Learn to code for FREE!

+12

Puzzle : simple and funny

int i=1, x=0; x= ++i + ++i + i++ + ++i + i-- + i++; What are the values of x and i at the end ? inspired by Rose Sevenyears if you like the question you can leave a like 🐈

5/15/2017 6:42:56 AM

NimWing Yuan

5 Answers

New Answer

+20

x = 22 i = 5 Solution: // Do it yourself...

+5

Hey @nimwing I think you've copied the question from @rose.

+4

x=22 i=5. Quite good.

+3

@Vishnu ks It's different and here's my nickname,so I don't mind at all :D P.s. and I copied it from my friend(in real) too :D

+2