Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    # note that %b modifier processes binary. Similarly, %x processes hexa
    +decimal and %o is for octal.
    ...
    $pos = 0b0000111111111111;
    printf "%b\n", ($move ^ $pos);
    
  2. or download this
    /* Apologies for using C, but its my "mother-tongue" :P */
    
    ...
            printf("%c", *(argv[1] + i)); /* reverse a string, a number, a
    + sentence, a novel... */
        }
    }