![]() |
![]() |
2887 | ![]() |
||||
![]() | |||||||
| Control flow | |||||||
Function 'main' ends with an implicit
return statement.
The function 'main' returns a value of type 'int' in a hosted environment.
In the absence of an explicit return statement, a conforming ISO:C90 implementation will return an undefined value; but a conforming ISO:C99 implementation, will simply return a value of 0.
It is good practice for the 'main' function to include an explicit return statement with a return expression of type int.
/*PRQA S 744,2017 ++*/
int main(void) /* 2887 */
{
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |