Thursday, July 30, 2009

C++ - difference between nonexcutable and executable statements?

I am creating a C++ logical LOC counting standard for a class but I don't quite technically understand the difference between an excutable and nonexcutable statement.





Can someone clear this up for me? Thanks!

C++ - difference between nonexcutable and executable statements?
Some executable statements:





index = index + 1;


index++;


for ( index = 0; index %26lt; 1000; index++ );


return;


exit(1);


if ( i %26lt; 10 );








Some non-executable statements





integer x;


// This is a comment


/* so is this */


int function( void ); // Note the ; It makes this a prototype





Hope that helps.
Reply:Non-executable would be something like a comment or a declaration.

violet

No comments:

Post a Comment