Java, JavaScript, C++, and C# use the same comment structure with simple rules:
1. Single line comments are indicated by "//"
a. Leading space is allowed by not required.
b. Trailing space is allowed but not required.
c. ANYTHING following the // is treated as a comment up to a newline.
////////
//**/*/*/*/*
// abc
//!@#$%^&*()
//
2. Multi-line comments are delimited by "/*" and "*/".
a. Leading spaces are allowed by not required for /* or */
b. Trailing spaces are allowed by not required for /* or */
c. ANYTHING between /* and */ is treated as a comment, including newline.
/*test*/
/* test */
/* /* /* */
/* /////\\\\ */
/**/
/* !@#$%^&*(
*/
What do you mean by error means this thing is used for comment and they never give error while compiling. But If you need any help you can https://awriter.org/essay-writer/ check at here they must help you with your problem.
I have to check if it works in other languages... I think this would not work in C++ either...
Java, JavaScript, C++, and C# use the same comment structure with simple rules: 1. Single line comments are indicated by "//" a. Leading space is allowed by not required. b. Trailing space is allowed but not required. c. ANYTHING following the // is treated as a comment up to a newline. //////// //**/*/*/*/* // abc //!@#$%^&*() // 2. Multi-line comments are delimited by "/*" and "*/". a. Leading spaces are allowed by not required for /* or */ b. Trailing spaces are allowed by not required for /* or */ c. ANYTHING between /* and */ is treated as a comment, including newline. /*test*/ /* test */ /* /* /* */ /* /////\\\\ */ /**/ /* !@#$%^&*( */
What do you mean by error means this thing is used for comment and they never give error while compiling. But If you need any help you can https://awriter.org/essay-writer/ check at here they must help you with your problem.