views:

182

answers:

2
+2  A: 

No. I think for(;;) looks nicer. But they're the same.

Also see http://stackoverflow.com/questions/2611246/is-for-faster-than-while-true-if-not-why-do-people-use-it

Charles Salvia
Haha, is that a joke?
AK
+3  A: 

With optimizations enabled, they will compile identically.

You should use whichever one you find more readable.

SLaks