I personally use while(true) for endless loops, but I’ve seen examples online that use for(;;). Practically speaking, are there any differences between the two, or is it just a stylistic thing?
I personally use while(true) for endless loops, but I’ve seen examples online that use
Share
No difference. I checked the IL. I wrote two function as following.