+ 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.
+ 4
âŠdonât over use comments, the code should speak for itself.
Only use comments when itâs difficult to determine what is happening.