Hi,
is this type of comment supported in ANSI C:
Because I am not sure if it could be used only in C++.Code:printf("Hello World\n"); // Prints "Hello World"
Thanks.
Printable View
Hi,
is this type of comment supported in ANSI C:
Because I am not sure if it could be used only in C++.Code:printf("Hello World\n"); // Prints "Hello World"
Thanks.
yes it is
Thanks.
Not in C89. But a lot of compilers support it as an extension (it was however made standard in C99).
And ANSI C *usually* refers to C89 -- so the answer is no.