for(;;)和while(1)有什么区别,为什么官方样例都用for(;;)呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
用for和while的代码执行的效果是一样的,用for只有一个优点,代码减少2个byte