answersLogoWhite

0

Both are (usually) ignored by the compiler. For the programmer, indentation and comments serve quite different purposes. Indentation shows clearly what is the scope of a FOR, IF, etc. Comments give additional explanation about some part of the code that might otherwise be confusing. For instance, they may explain the purpose of a method or class in more detail.

Both are (usually) ignored by the compiler. For the programmer, indentation and comments serve quite different purposes. Indentation shows clearly what is the scope of a FOR, IF, etc. Comments give additional explanation about some part of the code that might otherwise be confusing. For instance, they may explain the purpose of a method or class in more detail.

Both are (usually) ignored by the compiler. For the programmer, indentation and comments serve quite different purposes. Indentation shows clearly what is the scope of a FOR, IF, etc. Comments give additional explanation about some part of the code that might otherwise be confusing. For instance, they may explain the purpose of a method or class in more detail.

Both are (usually) ignored by the compiler. For the programmer, indentation and comments serve quite different purposes. Indentation shows clearly what is the scope of a FOR, IF, etc. Comments give additional explanation about some part of the code that might otherwise be confusing. For instance, they may explain the purpose of a method or class in more detail.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

What character is used to begin a comment?

This is different in different programming languages. Some character groups used in various languages to start a comment are: //, ;, !, /*, --, #, ', {, <!--, {-, etc. Some languages also require a character group to end a comment. Some older languages did not use character groups to mark comments but required them to appear in a certain place on every program line. There are endless variations in how commenting is done in computer programming languages.


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.


Why are the indents necessary after the if and else statement?

Indents are not necessary for simple if statements: if (true) /* do something */ ; else /* do something */; However, when a statement is a compound statement, it's best to place the statement body on a separate line and indent it: if (true) { /* do something */ ; /* do something */ ; /* do something */ ; } else { /* do something */; /* do something */; } The indents help the reader; separating the controlling expressions from the compound statements and thus exposing the structure of the if statement itself.


How is event driven programming different from other programming?

write a note on event driven programming


Indentation is used to make programming code easier to read?

To make the code easier to read for you and other programmers that might view your work.

Related Questions

What is the indentation in programming Why is it important?

In computer programming languages, indentation formats program source code to improve readability. Programming languages make use of indentation to define program structure . Programmers use indentation to understand the structure of their programs to human readers.


What is the symbol for indentation?

The symbol used for indentation in most programming languages is the tab key or the space key to add white space before a line of code. The amount of indentation typically follows a specific style guide set by the programming language or organization.


What is the significance of the tab symbol in programming languages?

The tab symbol in programming languages is significant because it is used for indentation, which helps organize and structure code. Proper indentation makes code easier to read and understand, and also helps identify blocks of code.


What character is used to begin a comment?

This is different in different programming languages. Some character groups used in various languages to start a comment are: //, ;, !, /*, --, #, ', {, <!--, {-, etc. Some languages also require a character group to end a comment. Some older languages did not use character groups to mark comments but required them to appear in a certain place on every program line. There are endless variations in how commenting is done in computer programming languages.


Use 'indentation' in a sentence?

"The indentation of the margins were so large, that the Professor immediately knew that the ten pages in his hand were closer to six." "The brass knuckles left an horrid indentation upon the forehead of the man."


What is the name of the indentation on the inside of the cheek?

its called the keehc please like comment and subscribe for more plus i love aqua fresh


What are the different types of indentation?

There are four common types of indentation: Block indentation, where text is indented to separate it from the surrounding content. Hanging indentation, where the first line of a paragraph is not indented, but subsequent lines are. First-line indentation, where only the first line of a paragraph is indented. Left and right indentation, where both the left and right margins of a paragraph are indented.


Why is indentation important in c progaming?

indentation is good for all programming languages 1) it shows levels of nesting, nested if statements , for loops, etc 2) anyone reading your code can tell whats executing inside of what 3) It shows scope. If everything is indented you know the scope of variables 4) Easier to read 5) Better programming sense


Why you use a comment in programming?

comments are used in programs to make the program more user friendly. The comment lines will not effect the execution speed of the program.


How do you get a working comment box on your website?

To get a working comment/feedback box, you will need to use the programming languages HTML and Javascript (javascript is widely used for forms)


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.


Why do you have different Programming languages?

why do we have diffrent programming laungage