Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many lines of code can be in a C++ function

How many lines of code can be in one C++ function? Is there a limit? I'm using MSVS 2013. My main function is huge.

like image 683
anarchyistheanswer Avatar asked Dec 10 '22 17:12

anarchyistheanswer


1 Answers

There is no limit, but keeping maintainability in mind around 30 lines max. Should be used if possible.

like image 122
svanderwoude Avatar answered Dec 30 '22 00:12

svanderwoude