Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#FFcccc
// */          //* comment, not syntax error */

f = g/**//h;   //* equivalent to f = g / h; */

//\
i();           //* part of a two-line comment */

/\
/ j();         //* part of a two-line comment */


/*//*/ l();    //* equivalent to l(); */

m = n//**/o
+ p;           //* equivalent to m = n + p; */

a = b //*divisor:*/c
+d;            //* interpreted as a = b/c +d; in c90 compiler and a = b+d; in c99 compiler

Compliant Solution 1

Use a consistent style of commenting:

Code Block
bgColor#ccccff

// Nice simple comment

int i; // counter */

Compliant Solution

...

Use a consistent style of commenting:

...