token (/* ) and a closing token ( */).
Anything that is enclosed within these is simply ignored by the
compiler.
The tokens can start in any column and they do not have to be on the same line.
For
example,
/* a block comment can go to
More than one line also */
On the other hand,
a line comment uses two slashes (//) to identify a comment.
There is no need
for an end-of-line token here. This type of comment format is very much preferred by programmers as
it is easier to write. It can also start anywhere on the line.
However, note another programming rule: “
Do'stlaringiz bilan baham: |