+ 2
is it possible to use /* for both multiple and single lines??
8 Réponses
+ 8
yes.
/**/ use for both single and multiple lines comment.
but it is a good practice to use // for single line comment.
+ 3
+ 3
Yeah . You can use "/* */ "for multiple and single line comments but "// " only for single line comments.
+ 2
// - single line
/* comments */ also used
+ 2
saba-hs
your welcome ✋
good luck ✌
+ 2
yes you can use "\*" instead of \\. \* can be used for single as well as multiple line comments but if there is only a single line comment then it is helpful to practice \\
+ 1
Use \\ when commenting next to your statement
int a; \\declaring variable.
And use \* *\ when you want to describe about your code.
See this
https://code.sololearn.com/cfob4Ie8GuGW/?ref=app
Hope this helps ☺️☺️.
- 1
yes :)