- 1
// this is a single line comment x=5 //
i'm still confuse with this code pliss give an example
6 Answers
+ 17
What's your question?
+ 13
~_~
+ 1
Try it On Code Playground! ^_^
+ 1
I didn't quite understand the question properly but anyway, The statement you provided is in 2 lines. // doesn't need a closing set of //.
The correct way would be
// this is a single line comment
// x=5
0
Comment is something which won't be compiled in compiler. ^_^
Comment is some text to help you as well as others to understand code you did on which purpose.
Practicing commenting in your code will help you to debug your bug in your program.
-
Go to Code PlayGround
and
try that code.
It will turn into gray because this won't be compiled.
Hope, you get it.
^_^
0
//best question I've ever heard! :)