TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C++ Coding Standard

Rule:  CFL#020Checked automatically with code checker

Synopsis:A non-void function will end with a return statement
Severity Level:1
Category:Control Flow


This means that, if necessary, a function may have multiple or conditional return statements. However, such a function shall never return an undefined value by unexpectedly falling off the end. See also [CFL#001]and [CFL#014].