Visar inlägg med etikett The For Loop is the devil in disguise. Visa alla inlägg
Visar inlägg med etikett The For Loop is the devil in disguise. Visa alla inlägg

25 januari 2013

The For Loop

The For Loop is the devil in disguise säger Jonathan Channon på sin blogg.

Vad leder följande kod till?



for (; ; )
{

  Console.WriteLine("Hi");

}



Svaret är att det leder till outputen "Hi" i evighet