What is the usage of while(1)?
<p>Can anyone explain the usage of while(1)?
I am a beginner in c++ &amp; want to know when should I use while(1)?
And how can I use it? 
Please give an example to explain.
Thanks in advance.</p>