T
Tanzil
asked

Expert
Apekchhya Shrestha answered
You can think of comments as helpful notes you leave in your code. They're not run by the compiler, they're just there to make the code easier to understand.
Right now, your code might be simple enough to follow without them, but as programs get more complex, comments become extremely useful, especially when someone else is reviewing your code.
Using comments early on is a great habit! They help you (and others) quickly understand what different parts of the code do, even after a long break.
Hope this helps! Feel free to ask more questions if you're curious.
C++
This question was asked as part of the Learn C++ Basics course.