3.Comment in C ,C++ and JAVA
- In C:
- Single Line Comment::
// -> It is used for single line comment.
- Multi-Line Comment::
/*.................................*/
It is used for Multi-Line Comment.
2. In C++:
- Single Line Comment::
// -> It is used for single line comment.
- Multi-Line Comment::
/*.................................*/
It is used for Multi-Line Comment.
3. In JAVA:
- Single Line Comment::
// -> It is used for single line comment.
- Multi-Line Comment::
/*.................................*/
It is used for Multi-Line Comment.
Note : We can write comment in C++ and JAVA language using same way which is used in C language.
0 comments: