Comments are written in source code (source program) for documentation purpose as while compiling, the compiler discards these comments from the code. Its main usage is to give descriptions about the source code so that it can be understood by other programmers if they wish to use that program for future development.
C and C++ support two ways to insert comments:
// single line comment
/* multiple lines comment */
What are comments?
More Questions
- What is Compile Time and Run Time?
- What are the native methods in Java?
- What are the features (characteristics) of Java?
- What are the Drawbacks (Limitations) of C Programming Language?
- What is JAVA?
- Who invented Basic?
- What are the advantages of Object oriented programming?
- What are Inline Functions?