answersLogoWhite

0


Best Answer

A comment line is a line or part of a line in a program that is intended as a remark or comment and is ignored when the program runs. It is noted within the file by using a semi-colon or an REM to mark a line as a comment.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 11 What is a comment line How is a comment line noted within a file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a comment line How is a comment line noted within a file in Computer Science?

It all depends on your language. In C, you would use // for a single line comment that ends at the end of the line (in a MS compiler) /* or the slash and asterisk that ends at an asterisk and a slash */


If you want an application to ignore a line in a .ini file you can turn the line into a comment line by putting?

semicolon (;)


If you want an application to ignore a line in a ini file you can turn the line into a comment line by putting an at the beginning of the line?

a semicolon or the letters REM


What is single line comment?

single line comment are comment written in single line.in c there are two types of comment single line and multiple line.single line comment is written using // and multiple line comment is written between /*comment*/.compiler does not compile comments.it is used for better understanding of program.


How can you create a comment in a C plus plus program?

There are two ways:The single line comment with a double slash //. Everything after the double slash on a single line is commented out.The multi-line comment using a /* to open, and a */ to close.A good IDE will color code the comments instantly.


What is single line comments as used in C programming?

single line comment are comment written in single line.in c there are two types of comment single line and multiple line.single line comment is written using // and multiple line comment is written between /*comment*/.compiler does not compile comments.it is used for better understanding of program.


What is a comment line and how is a comment line noted withing a file?

A comment line is a line (or block) of text added by the programmer to explain the function of certain code. Comments are commonly added to be later pulled out by software and create the code documentation. Comments are also added in places in the code where a programmer has done something that he/she believes to be difficult to understand, or when the code works, even if the programmer can't explain why (the call this a "hack.") These types of comments are called "implementation comments." How you denote comments varies from language to language. In Java and in C, a comment is begun with a /* and ends with a */. You can use this for both block and inline comments (implementation comments.) Java also uses a specific syntax for Document comments: /** * Doc comments. * Documentation engine will grab this block */ In JavaScript, block comments can be set aside with /* and */, while single line comments are started with //. Everything after the // in a line of code is ignored as a comment.


How do you leave comment on php code?

There are 3 styles of PHP comments // comment a single line # comment a single line (perl-style /* comment block */


How do you denote a comment line and a comment paragraph?

How_do_you_denote_a_comment_line_and_a_comment_paragraph?


What is the correct JavaScript syntax to insert a comment that has more than one line?

The proper syntax to insert a multi-line comment into JavaScript is to surround the comment with /* and */ function useless() { /* This function doesn't do anything We should come back to it. Soon. */ }


What are the two types of comments in c programming language and how do they differ?

C uses two types of comment: single-line and multi-line. The multi-line comment originated in C while the single-line comment originated in C++. Both types are supported by both languages today. A single-line comment begins with the double-slash token (//) and extends to the end of the line. A multi-line comment begins with the slash-asterisk token (/*) and ends with the asterisk-slash token (*/). Examples: int x; // this is a single-line comment /* this is multi-line comment, typically used to introduce a function or class */ Note that since multi-line comments are fully-delimited, they may be used within the middle of a line of code. This is most useful when a function is forward-declared with a default value for one of its arguments and you wish to include that default value in the function definition (something which is not permitted under the one-definition rule): void f (int = 0); // declaration void f (int x /* = 0 */) { // definition } Such usage is really only of use to the function maintainer, as a reminder that the function has a default value. We can also use this technique when a function has an argument that is reserved for future use, but is otherwise unused in the current version of the function: void g (int); // declaration void g (int /* unused */) { // definition } Again, such usage is only of use to the function maintainer.


How do you add comments in batch files?

Anytime you wish to create any type of remark in a batch file rem must be added in front of the line. Remarks are often used to skip a line in the batch file or make comments.