Package Index  Table of Contents

CodeCheck ECS C/C++ to Test Suite - 145.cpp

/*
145.  Avoid break and continue in iteration statements.
*/



Function Name: main()

main() {
  while ( 1 ) {
    
        
     break;      // no
     
     continue;   // no
  }
    for ( ;; ) {
      
      // Avoid break and continue in iteration statements.
      
      break;
      
    }
}

Package Index  Table of Contents

CodeCheck Copyright (c) 1988-2005 by Abraxas Software Inc. (R). All rights reserved.