Hi James, excuse my ignorance, but what does this do?
Thanks, Alan
On Fri, 3 Sep 2010, James Morris wrote:
> /* 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
>
>
==
email archive: http://sondheim.rupamsunyata.org/
webpage http://www.alansondheim.org
music archive: http://www.espdisk.com/alansondheim/
==
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour