Examples for an infinite loop

a. while (1)
   {
   }

b. for (;;)

   {
   }

c. do

   {
   }while(1);

d. label:
    goto label;

No comments:

Post a Comment