+ 1

Is while(1) {}... A correct syntax in c language ??

C code syntax

9th Dec 2018, 3:22 AM
Anshul Kumrawat
Anshul Kumrawat - avatar
2 Réponses
+ 2
Yes
9th Dec 2018, 3:37 AM
‎ ‏‏‎Anonymous Guy
+ 2
Anshul Kumrawat It's a very valid syntax in any programming language. However loops like this are what we call "Infinite Loops", meaning they run forever without ever terminating.
9th Dec 2018, 6:16 AM
Dlite
Dlite - avatar