Comments in C++

Comments are very important in any type of programming Language like C++, Java, JavaScript etc. Comments are programmer readable explanation about the code in the Source Code. It has no effects on the Object Code because it was ignored by Compiler and Interpreter.  Comments are of two types i.e. Single Line Comments and Multi Line Comments.

Single Line Comments
Single Line Comments Starts with // and followed by the comment.
Syntax
// This is single line comment.

Multi Line Comments
Single Line Comments Starts with /* and followed by the comment which may be up to many lines and ends with */
Syntax
/* This is multi
 line comment.*/

Watch The Video Below For More Guideline

No comments

Powered by Blogger.