Here is another:
#include <stdio.h>
int main()
{
(sizeof('A') == sizeof(char)) ? printf("C++ Compiler") : printf("C
compiler");
}
Atamyrat Hezretguliyew wrote:
> #include<stdio.h>
> void main() {
> int allowed=1;
> /* /* */ allowed=0; // */
> printf( allowed ? "yes" : "no" );
> }
>
> please correct me if there's smth i missed.
>
> atamyrat
>
> On 9/23/06, MM <[EMAIL PROTECTED]> wrote:
> >
> > How do you write a C program which when compiled and run, prints out a
> > message
> > indicating whether the compiler that it is compiled with, allows /* */
> > comments to nest?
> >
> >
> > >
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---