Sun Studio 12: C User's Guide

D.1.5 Commenting Code With //

6.4.9 Comments

The characters // introduce a comment that includes all multibyte characters up to, but not including, the next new-line character except when the // characters appear within a character constant, a string literal, or a comment.