I always find it difficult to remember the syntax of different programming/scripting languages I learnt/know. And most common syntax is
Comments in various programming/scripting language. So, here I am documenting them all.
Comments are used to embed/put programmer/human-readable comments/tips/suggestion/annotations in the source code of a computer program. Those comments are generally significant to programmers but typically ignorable to compilers and interpreters.
- Java
- One liner: // comments
- Multi liner: /* first line
second line
third line
*/
- Ada
- One liner: -- comments
- Multi liner: -- first line
-- second line
- C#
- One liner: // comments
- Multi liner: /* first line
second line
third line
*/
- C++
- One liner: // comments
- Multi liner: /* first line
second line
third line
*/