[try Beta version]
Not logged in

 
Obfusction

Aug 30, 2010 at 6:49am
1
2
3
#include <cstdio>
int _(int __, int ___){if(__ == ___) return __;if (__ < ___) printf("%d",__),_(__+___/___,___);}
main(){_(0,3);}

I wrote this recursive loop just a second ago, and I'm just asking, how can I obfuscate it even more? Whenever I try to change the ifs into calls to the conditional operator (?:), it throws different errors at me.
Aug 30, 2010 at 10:10am
First off... You should return something in case of error ;-) (if __ != ___)...

Could you print the errors while compiling??

What are you doing with
printf("%d",__),_(__+___/___,___);
??

Should that be a semicolon after the printf(...); ??
Aug 30, 2010 at 10:53am
The conditionals operator require three operands, the last two of the same type.
Try something like __ < ___ ? printf(...),_(...) : 0;
( printf(...),_(...) is of type int )
Topic archived. No new replies allowed.