A
Andrey Vul
C's handling of 'if' leads to a lot of room for obfuscation. All you
have to do is replace ';' with '|' for compound expressions and add
parentheses as neccessary.
if (x)
y;
else
z;
becomes
((x)&&(y))
||(z);
for compounds,
if (x)
y;z;a;b;
else
c;d;e;f;
becomes
((x) && ((y)|(z)|(a)|(b))
||((c)|(d)|(e)|(f));
C is so much fun to obfuscate. Gotta love ISO 9899.
The result is still more readable than perl, though.
have to do is replace ';' with '|' for compound expressions and add
parentheses as neccessary.
if (x)
y;
else
z;
becomes
((x)&&(y))
||(z);
for compounds,
if (x)
y;z;a;b;
else
c;d;e;f;
becomes
((x) && ((y)|(z)|(a)|(b))
||((c)|(d)|(e)|(f));
C is so much fun to obfuscate. Gotta love ISO 9899.
The result is still more readable than perl, though.