Question: are while loops faster than for loops?
Answer: As for infinite loops for(;;) loop is better than while(1) since while evaluates every time the condition but again it depends on the compiler.