A line of code is every line but comment lines or blank lines. As you can see, this metric is not very representative. You may break down a single line as two lines. However, LOC is very popular.
LOC=1
for (i=1; 10; 2) { a = a + i ; }
or
LOC=4
for (i=1; 10; 2)
{
a = a + i ;
}
Reference
(1) Software metrics: good, bad and missing
Sunday, July 29, 2007
Lines Of Code
Posted by Software Engineering Notes at 6:18 AM
Subscribe to:
Post Comments (Atom)
1 comment:
nice notes...for all notes of computer science engineering notes
visit..engineering notes
Post a Comment