Home  >  Article  >  Backend Development  >  Are the comments in the program included in the compilation?

Are the comments in the program included in the compilation?

藏色散人
藏色散人Original
2020-04-22 09:29:546739browse

Are the comments in the program included in the compilation?

Does the comment part in the program participate in compilation?

The comment part in all programming languages ​​​​does not participate in compilation, nor does it They will not appear in the target program. Comments are only made to make it easier for programmers to understand the program.

Its function is to give the code an annotation, so that other programmers who read your code can understand the meaning of each statement.

Related introduction:

Comments are explanations and descriptions of the code, and their purpose is to make it easier for people to understand the code. Comments are when the programmer writes an explanation or hint for a statement, program segment, function, etc., which can improve the readability of the program code.

Comments are only for readability and will not be compiled by computers.

The above is the detailed content of Are the comments in the program included in the compilation?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn