Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The long string is simply a binary sequence converted to ASCII. The first <code>for</code> statement makes <code>b</code> start out at 10, and the <code>[b+++21]</code> after the string yields 31. Treating the string as an array, offset 31 is the start of the "real" data in the string (the second line in the code sample you provided). The rest of the code simply loops through the bit sequence, converting the 1's and 0's to !'s and whitespace and printing one character at a time.</p> <p>Less obfuscated version:</p> <pre><code>#include "stdio.h" int main (void) { int a=10, b=0, c=10; char* bits ="TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WHq!WFs XDt!"; a = bits[b]; while (a != 0) { a = bits[b]; b++; while (a &gt; 64) { a--; if (++c == 'Z') { c /= 9; putchar(c); } else { putchar(33 ^ (b &amp; 0x01)); } } } return 0; } </code></pre> <p>The <strike>strange</strike> clever part is in the <code>putchar</code> statements. Take the first <code>putchar</code>. ASCII <code>'Z'</code> is 90 in decimal, so 90 / 9 = 10 which is a newline character. In the second, decimal 33 is ASCII for <code>'!'</code>. Toggling the low-order bit of 33 gives you 32, which is ASCII for a space. This causes <code>!</code> to be printed if <code>b</code> is odd, and a blank space to be printed if <code>b</code> is even. The rest of the code is simply there to walk the "pointer" <code>a</code> through the string.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload