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.
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.
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.
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.
write a note on event driven programming
To make the code easier to read for you and other programmers that might view your work.
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.
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.
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.
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.
"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."
its called the keehc please like comment and subscribe for more plus i love aqua fresh
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.
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
comments are used in programs to make the program more user friendly. The comment lines will not effect the execution speed of the program.
To get a working comment/feedback box, you will need to use the programming languages HTML and Javascript (javascript is widely used for forms)
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 we have diffrent programming laungage