C++ CommentsComments are text ignored by C++, it will be used to improve readability of the code.
C++ support 2 types of comments:
- Single Line
Text exist after 2 forward Slash (
Example C++ Single Line Comment
//) will be ignored.
Text exist between
Example C++ Multi-Line Comment
*/will be ignored by C++
In this page (written and validated by A. Gawali) you learned about C++ Comments . What's Next? If you are interested in completing Cpp tutorial, your next topic will be learning about: Cpp Declare Variables.
Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: email@example.com.