+ 7
Is it true comments like // and /* */ valid in every language? (Excuse for my English)
i use this comments in c++,java,c# and php
10 Réponses
+ 8
Here is a website comparing the comments of different languages.
The main comments are:
• # Text
• // Text
• /* Text */
http://www.spiceforms.com/blog/list-comment-syntax-programming-languages/
+ 6
Different languages have different comment syntax. Python, for instance, uses hash.
#This is a comment
HTML
<!-- This is a comment -->
+ 3
coolboy7 <!-- This is HTML comment -->
+ 3
c# can also use/// as comments
+ 1
I think most have that. Python doesn't however. HTML also doesn't either.
+ 1
CSS and JavaScript use the same comment
+ 1
No, it depends on the compiler. Comments are not only to skip the compilation of the statement, Also it helps you to document it.
+ 1
FORTRAN uses a "C" in the first colmn.
0
java ; // and /**
*/
- 2
// this is for java comments and /* */ these are for html