What Is Comment Give An Example?

What is the use of comment?

In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program.

They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters..

How do you write a public comment?

General Comment Format I am… 1-2 sentences introducing yourself and your credentials, as they relate to the comment you are writing. I would like to… [raise concerns / inform you of new information / provide supporting evidence] regarding [Document Title]: [1 sentence describing first major point]

How do you say no comment politely?

How To Say No Comment Without Saying No Comment“I don’t have anything to say about that.”“I can not comment on these matters because they are under seal.”“I … have nothing to add to my former answer.”More items…•

What are comments explain with an example?

1. A comment is text in a program’s code, script, or another file that is not meant to be seen by the user running the program. … Comments help make code easier to understand by explaining what is happening and help prevent portions of a program from executing. The image is an example of an HTML comment.

What are comments in MS Word?

Comments can be added to a document that do not change the document. You can insert a comment inside balloons that will appear in the document margins. They can also be hidden until you want to edit your paper.

Which of the following is a correct comment for comment in C programs?

Discussion ForumQue.Which of the following is a correct comment for comment in C programs?b.** Comment **c./* Comment */d.{ Comment }Answer:/* Comment */1 more row

What is another word for comment?

In this page you can discover 73 synonyms, antonyms, idiomatic expressions, and related words for comment, like: commentary, annotation, remark, affirm, discuss, point out, criticize, state, interject, say and bring out.

What are the two types of comments?

We have two types of comments here, the end-of-line comment and the block comment. An end-of-line comment terminates at the end of the line. A block line comment has a terminator and can continue for several lines, or be less than one line. Comments were called REMarks in BASIC.

How do you write a good comment in code?

Primarily, a single “block” comment should be placed at the top of the function (or file) and describe the purpose the code and any algorithms used to accomplish the goal. In-line comments should be used sparingly, only where the code is not “self-documenting”.

What is single line comment?

Single-line comments allow narrative on only one line at a time. Single-line comments can begin in any column of a given line and end at a new line or carriage return. The // character sequence marks the text following it as a single-line comment. Here’s an example.

What are some positive comments?

100 Positive Comments to Utilize when Speaking on Students’ Behavioris an enthusiastic learner who seems to enjoy school.exhibits a positive outlook and attitude in the classroom.appears well rested and ready for each day’s activities.shows enthusiasm for classroom activities.More items…•

What is comment in Python give an example?

A comment in Python starts with the hash character, # , and extends to the end of the physical line. A hash character within a string value is not seen as a comment, though. To be precise, a comment can be written in three ways – entirely on its own line, next to a statement of code, and as a multi-line comment block.

What do you mean by comments?

(Entry 1 of 2) 1 : commentary. 2 : a note explaining, illustrating, or criticizing the meaning of a writing Comments on the passage were printed in the margin. 3a : an observation or remark expressing an opinion or attitude critical comments constructive comments.

What should I write in comment?

I always try to follow these 7 guidelines:Mention the content. Whenever you’re writing a comment try to mention the content of the post the comment is for. … Don’t thank anybody. … Don’t go off-topic. … Responding to the first commenter. … Get a Gravatar. … Using a keyword-rich name. … Getting your grammar right lolz.

What is comment in C program?

What Is Comment In C Language? A comment is an explanation or description of the source code of the program. It helps a developer explain logic of the code and improves program readability. At run-time, a comment is ignored by the compiler.