Comments

Default Image

All programming languages provide
comment statements in different forms. Comments are used to increase
readability of our source code. We can add comments in the form of
single line or in block form. To add a single line comment we use double
forward slash (//) in the beginning of comment line. For example, we
want to add comments about the programme introduction it will be written
as:

//this programme will add two integers


//written by xyz programmer


            If we want to write block of
comments, we will forward slash and steric (/*) in the beginning of
block and bloc ends with (*/) for example


/*this programme will add two integers


written by xyz programmer*/


             Compiler doesn’t treat
comments as token so all the comments are converted into blank space
before compiling. It means comments did not increase size of our
executable file.

Read Count: 3 times

Comments

No comments yet.

Leave a Comment