Features Of C Programming Language

Example of a C program

main( )
{
  int x;
  for(x = 0; x < 15; ++x)
  {
   if (x == 8)
     break;
   printf("in the break loop, x is now %d\n",x);
  }
 
  for(x = 5; x < 15; ++x)
  {
    if (x == 8) 
      continue;
    printf("In the continue loop, x is the now %d\n",x);
  }
}

Learn more about C Programming Language

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.