0

is there any way to have a shortcut / macro to put c++ (double slash) style comments in C sources ? I only menage to obtain c (no-block) comments ie.

/*
 comment...
*/

which is somewhat umcomfortable

1 Answer 1

0

This depends on your compiler and if 'strict' is applied.

C99 introduced several new features, (..) and support for one-line comments beginning with //, as in BCPL or C++. Many of these had already been implemented as extensions in several C compilers.

1
  • it's supported as my compiler is gcc and i use std99
    – gpilotino
    Jul 27, 2012 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.