What Is a Line of Code (LOC)?

"Lines of code" (LOC) or "Source lines of code" (SLOC) is an informal unit for assessing a program’s feasibility or maintainability by measuring its size. The size of a program in LOC is determined by counting the number of lines used to write its source code. The total sum does not include blank or comment lines.