home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / c / other / learn / badsemi.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-07  |  247 b   |  14 lines

  1. /* BADSEMI.C: Misplaced semicolon. */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.    int count;
  8.    for( count = 0; count < 500; count++ ); /* Error! */
  9.    {
  10.       printf( "count = %d\n", count );
  11.       printf( "And the beat goes on...\n" );
  12.    }
  13. }
  14.