+ 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

3rd Jul 2018, 12:12 PM
Tarika
Tarika - avatar
10 Answers
+ 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/
3rd Jul 2018, 12:20 PM
Agent
Agent - avatar
+ 6
Different languages have different comment syntax. Python, for instance, uses hash. #This is a comment HTML <!-- This is a comment -->
3rd Jul 2018, 12:25 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
coolboy7 <!-- This is HTML comment -->
4th Jul 2018, 7:20 AM
Cyber5
Cyber5 - avatar
+ 3
c# can also use/// as comments
19th Aug 2018, 7:21 AM
I Am A Coder🌍[Not Active]
I Am A Coder🌍[Not Active] - avatar
+ 1
I think most have that. Python doesn't however. HTML also doesn't either.
3rd Jul 2018, 9:22 PM
coolboy7
coolboy7 - avatar
+ 1
CSS and JavaScript use the same comment
4th Jul 2018, 7:19 AM
Cyber5
Cyber5 - avatar
+ 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.
7th Jul 2018, 7:09 PM
Ramesh Annadurai
Ramesh Annadurai - avatar
+ 1
FORTRAN uses a "C" in the first colmn.
9th Jul 2018, 4:20 AM
Thomas Blackwell
Thomas Blackwell - avatar
0
java ; // and /** */
3rd Jul 2018, 1:14 PM
Driss Aharik
Driss Aharik - avatar
- 2
// this is for java comments and /* */ these are for html
3rd Jul 2018, 12:18 PM
Naveen Raj
Naveen Raj - avatar