0
what is a comment?
4 Answers
+ 3
u write comments to understand the lines of code its a good practice to write comments thr r two types of comments
//1 . single line comments
/* 2 . multi
line
comments */
+ 2
A comment is a piece of code which is not processed/read by the compiler. You can write anything in a comment; this is usually done to explain parts of your written code and helps others to understand it. Writing code in a company is usually done with teamwork so writing comments to explain what you are trying to do is commonly considered good writing style. Try to get used to writing comments - it's also helpful for yourself when you're trying to understand what you did there!
+ 1
comment is one type of remark. so that compiler not accept that thing. it is denoted by "//"
0
Explains what the code is doing. it can anywhere be in the program. anything give inside /* */ will taken as comment and compiler ignores it while execution. .