/* double_bang_test.c */
#include <stdio.h>
int main(int argc, char** argv)
{
int x = 4;
do
{
printf("x:%d !x:%d !!x:%d\n", x, !x, !!x);
/*
printf("\t(!x == x) == %s\n", (!x == x) ? "true" :
"false" );
printf("\t(!!x == x) == %s\n", (!!x == x) ? "true" :
"false" );
printf("\t(!!x == !x) == %s\n", (!!x == !x) ? "true" :
"false" );
*/
printf("\t(!x != x) == %s\n", (!x != x) ? "true" :
"false" );
printf("\t(!!x != x) == %s\n", (!!x != x) ? "true" :
"false" );
printf("\t(!!x != !x) == %s\n", (!!x != !x) ? "true" :
"false" );
putchar('\n');
} while(x >>= 1);
return 0;
}
/*
--
_
: http://jwm-art.net/
-audio/image/text/code
*/
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour