I noticed Visual C++ 2010 (my current environment) and XCode both allow non-standard single-line comments in my C programs. Since these are both my target platforms, I assume it's fine to use it? VC++ 2010 doesn't support C99, so I'm limited to C89, though I know C99 added support.
closed as primarily opinion-based by GlenH7, Kilian Foth, thorsten müller, Robert Harvey, Dynamic Jan 28 '14 at 21:24
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.
Anything that works is fine as long as you don't care about the environments where it doesn't work. If you have no ambitions to compile your code in an environment that doesn't support one-line comments (presumably comments that begin with
// and continue to the end of the line), then it's fine.