I'm writing some C code that output large tables into a file. I am also outputting C-style comments. Here's the problem I'm having:
Code:
int main()
{
int a;
/*
printf("/* */\n");
*/
return 0;
}
But this gives me the following errors:
tmp.c: In function `main':
tmp.c:6: error: stray '\' in program
tmp.c:6:17: missing terminating " character
tmp.c:7: error: `n' undeclared (first use in this function)
tmp.c:7: error: (Each undeclared identifier is reported only once
tmp.c:7: error: for each function it appears in.)
tmp.c:7: error: parse error before string constant
Is there a way around this? I don't want to output C++ style comments. This problem persists even in PHP.
Thanks,
Yasir