#include<stdio.h>
int main()
{
int allowed=1;
/* /* */ allowed=0; // */
printf( allowed ? "yes\n" : "no\n" );
return 0;
}
Above code is not correct ANSI C code, but I think, you can
compile it with most of compilers and check if it supports nested comments.
For example, this code compiles with GNU C Compiler and prints "no".
If you want plain ANSI C code, here it is;
#include<stdio.h>
int main()
{
printf("no, nested comments are not allowed!\n");
return 0;
}
regards,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---