+ 1

Why is the */ important

18th Feb 2017, 9:52 AM
emmanuel oyamenda
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.
18th Feb 2017, 9:57 AM
Robobrine
Robobrine - avatar
0
haha forget this when complie error
18th Feb 2017, 10:28 AM
전현수
전현수 - avatar
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
18th Feb 2017, 11:51 AM
Orfeo Terkuci
Orfeo Terkuci - avatar
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".
18th Feb 2017, 4:25 PM
Alberto
Alberto - avatar
0
thanks guys
18th Feb 2017, 7:41 PM
emmanuel oyamenda