+ 1
Why is the */ important
5 Réponses
+ 1
You mean for commenting with /* [comment] */ ?
/* starts a comment and this comment only end once it reaches */. This way you can have a comment over multiple lines.
0
haha forget this when complie error
0
Its the ending of a multiline coment. if you dont write the */ after a multi line comment it would continue to reguster everything after the begining /* as part of that comment
0
For single line comment you use // and that's it!
But if you are using multiple line comments, then you have to put an end to the comment indicator. The syntax tells you that /* Place here your comment */ is the correct form. If you do not use */, then all the rest of the code after the /* will be a "comment".
0
thanks guys