Skip to main content
Post Closed as "Opinion-based" by CommunityBot, Kilian Foth, thorsten müller, Robert Harvey, Dynamic
edited tags
Link
gnat
  • 20.5k
  • 29
  • 117
  • 309
added 15 characters in body
Source Link
Phil
  • 183
  • 1
  • 8

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 in Visual C++ 2010, though I know C99 added support.

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? I'm limited to C89 in Visual C++ 2010, though I know C99 added support.

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.

Source Link
Phil
  • 183
  • 1
  • 8

Is using non-standard single-line comments fine in C?

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? I'm limited to C89 in Visual C++ 2010, though I know C99 added support.