Saturday 9 April 2011

Comment usage

We realize that Code::Blocks has line numbering, text colouring, and easy text editing capabilities, therefore, edit.com is avoided. The two types of C comments are explored:

/* comments here */ is the C style comment, it lasts for as many lines as the delimiters indicate.

// C++ style comment is the C++ style comment, it lasts up until the end of that line.

Comments are used documentation and explanation purposes. Obvious beginner explanations must be skipped for real world programs. Only in educational material will you find comments being used as obvious explanations.

No comments:

Post a Comment