Clever code

Bertil Muth - Sep 11 '18 - - Dev Community

Do you remember „clever code“ you wrote, to show off or because you thought it was cool, and it could have been way more simple?

I remember when learning C++, I loved the increment and assignment operators, so I wrote ridiculous lines like:

int c = (a=b) * d++

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player