Why comments ignore? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why comments ignore?

2nd Dec 2018, 4:52 PM
Sanjay Sanju
Sanjay Sanju - avatar
2 Answers
+ 2
Are you talking about the comments written in a source code? The point of these comments is to help the reader understand the code better. You want these comments not to have any effect on your program.
2nd Dec 2018, 6:16 PM
HonFu
HonFu - avatar
+ 2
When the program is compiling, the comments are knocked off at the first stage. That is when the program is compiling, first of all all the spaces are removed and the compiler interprets the comments as one "space" character, so they are actually removed before the program is compiled.
17th Mar 2019, 6:22 AM
Alex Ed
Alex Ed - avatar