Though C language is a free format as explained in the foregoing paragraph
However, if everyone is doing various writing, it becomes difficult to read the program.
Therefore, the custom of writing is provided to some degree.
The program made for the start packed everything in one line.
Needless to say, this writing is a bad program of manners not read easily.int main(void) {return 0;}
If such writing is done, the start and the end of the function become comprehensible.int main(void) { return 0; }
Let's see the program ahead again.
I think that it is understood that the return sentence swerves to the right.int main(void) { return 0; }
The indent is used to express a hierarchical structure.
[ Indent ]
Method of moving to the right to express hierarchy and writing
When you use the development setting and the text editor recent
Input..stage..automatic..indent..do..function..attach.
It might be easy and be good to make them automatically apply it by using such an editor if possible.
[ Do easiness ].
The most important thing for the programmer is to do easiness.
Anyway, the computer should put everything by making it to the computer.
The chore must be left to the computer, and man must work on more creative work.
Though the content is understood at once if it sees if it is an easy program
The content is not understood only from glancing when becoming a complex program.
If the explanation is put in the program, the program becomes legible.
The function to put the explanation in the program is provided in C language, and this is called a comment.
In C language, it is possible to comment by placing it by /**/ between those.
[ Comment ]
Explanation written in program. There is no influence in the operation of the program at all.
The explanation can be buried by doing in this manner in the program.int main(void) { /* Here comments */ Return 0; }
The comment can be written in the line it writes in two or more lines, and with the program.
There are no custom of especially uniting it etc. about the writing of the comment.int main(void) { /* All it is possible to come are the comments on this. */ return 0; /* Here is a comment */. }
Apply the comment to a necessary part in the program explains on the site in the future.
You also think that you should apply the comment to the program that I write.