you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 6 months ago (2 children)

My favorite:

for (int i = myArray.Length; i --> 0; )
{
    //do something
}

Perfectly valid in C-style, even if it does look a bit puzzling at first.

  • source
  • parent
  • hideshow 2 child comments