Abraxas/ECS C++ Home  Table of Contents 

Module - 146.html

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

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

/*

146. Avoid multiple return statements in functions.

*/



Function Name: main()

main() {
  if ( 1 ) return;  // too many return path's
  
  if ( 2 ) return;
  
  return( 0 );
}

Abraxas/ECS C++ Home  Table of Contents

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