Abraxas/ECS C++ Home  Table of Contents 

Module - 81.html

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++.

ECS C++-C Test Suite for Module - 81.cpp

/*

81. Declare for-loop iteration variables inside of for statements.

*/

// a loop iterator variable must be local to for-loop

int



Function Name: main()

main() {
 int i;
 
  for ( i=0; i<1; i++ ) {   // BAD 81
  
  }
  
  for ( int i=0; i<10; i++ ) {  // GOOD 81
  
  }
  
}

Abraxas/ECS C++ Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++