+ 4
Comments are not always required.Comments are only meant to infom. You may write comments to remind yourself about what parts of the code does, or to help other developers understand what your code does. Example: cout << "Hello World"; // prints Hello World In this example the comment tells us that the code provided will print Hello World.
14th Jan 2023, 8:55 PM
Chris Coder
Chris Coder - avatar
+ 4

don’t over use comments, the code should speak for itself. Only use comments when it’s difficult to determine what is happening.
15th Jan 2023, 12:44 AM
DavX
DavX - avatar