Sabtu, Juni 27, 2015

For Looping Without Limit On C Programming

Some time ago, has been introduced with for looping which use limit till will be done a iteration, read here, now will be introduced syntax of for looping without limit. Example:

main()
{
  for (;;)
  {
    printf("just\n"); sleep(500);
    printf("for\n"); sleep(500);
    printf("test\n\n"); sleep(500);
  }
  getch();
}


If program syntax above is run than program will run continuously, please try

0 komentar: