Jump to content


Stupid code


  • Please log in to reply
2 replies to this topic

#1 Guest_ImmoMan_*

Guest_ImmoMan_*
  • Guests

Posted 04 December 2005 - 07:33 PM

Me and spare time are a bad combination. This is one almost worthy of the obfuscated C code contest! :p
This code actually compiles properly, and when run, it prints 'Wow this is the silliest code ever!' on the screen.

#include<stdio.h>
int main(){char I[]=
/*//\\"\/\/\/\*\\\//"/*\\\\/\\/\\/\*\\/\"/\/\\"/\\*\/\*/"/\"/\\/\\\"\\/\\\\/\\"
/*\"//\/\"\/\\\\/*/"\"\\\"*\\\"\\/\\\"\\//\"/*//*/\\\"\\/\\//*\\\"/\\//"///\//"
/*/\\\\/*\\\\//\"/\\/"/*\//\"\\\/\/\/"\\//\//\/"\/\\/\/\/*/"//\\\"/\\/*\\/\"\\"
/*\\"///*\\\\"/\\/\/"\\\/\/\/\"//\"/\"/\*\\/\/\\"\/\*\\/\\/\\\/\/*\\/\/\/*\\\/"
/*\"//\\\/\\\/\*\\///\/\\//"///*\/\/\\"\/\\\"\/\//\/*/"\\/"/*\\//\"/\\//*/"/\""
/*\\\/\//\*\\/\/\\////*\/\\\\*/"\"//\\/*////\"\\/\\/*\\/\"\\\\/*\"\\//\\///"//"
/*\\/\//\/\\\"/\"\\/\\\"/\/"*/"///\\\\\\/\\///\\\\/\\////\\"/*//\\\/\\"\\/*///"
/*\\\/\\/\"\\///\/\/\\/\/\/\/\//////\\\\/\\*/"\\//\\/\\//\\//*/"//\\\/\\\/\///"
/*////\\\\/////\/\\\\//*/"//\"\"\\//\"\\*\\\"/\\//\\*\"\\"/*\\\//\\\/\\/*///\""
/*\\\\/\\*\\/\/\//"/\/\\*\/\//"/\\\///*\"\/\/\///"///*///\\/\\\\*///\/\/\\\*\/"
/*\\"\\\/*/"/\"\\///\\\"*\\\"///\"\\/\\"/*\\\//\/\\\\*\\/\/\\*\\\"/\//\\/"///\"
/*\//*\"\///\//\\"/\\\/\\"\/\\\/*/"//\\*\"\\//\"/\\/\"\\"/*\"\//\\"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1+!1+1+1+!1+1+!1+1+!1+!1+!1+!1+1+!1+1+!1+1+!1+1+!1+1+!1+1
+1+!1+1+!1+!1+!1+!1+1+!1+!1+1+!1+1+!1+1+!1+1+1+1+!1+1+1+!1+!1+1+1+1+!1+!1+!1+1+
!1+1+!1+1+!1+1+!1+!1+!1+1+!1+1+!1+1+!1+!1+1+1+1+1+1+!1+1+1+1+1+!1+!1+1+1+!1+1+1
+!1+1+1+!1+1+1+!1+!1+1+1+1+!1+1+1+1+!1+!1+!1+1+1+!1+1+1+!1+1+1+!1+1+1||_[i]==1+
1+!1+1+1+!1+1+!1+!1+1+1+!1+1+1+!1+1+1+1+!1+!1+1+1+!1+1+!1+1+1+1+!1+1+1+!1+1+1+1
+!1+1+1+1+1+!1+1+1+1+!1+1+1+!1+1+1+!1)<<!1+1+1+!1+1+!1+!1+1+1+!1+1+!1+!1+1+!1+!
1-i;printf("\45\143",l);_+=1<<1+!1+!1+1+1+!1;l=!1;}}

Edited by ImmoMan, 04 December 2005 - 07:52 PM.


#2 Athena

Athena

    Embody the Truth

  • Undead
  • 6,946 posts
  •  Former Community Leader

Posted 04 December 2005 - 07:53 PM

:p ROFL!! Nicely done.

#3 Mad Ivan

Mad Ivan
  • Project Team
  • 115 posts
  • Location:Bug City
  • Projects:Allies Revenge 3

Posted 09 January 2006 - 12:56 AM

wow...erm...nice :grin:
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users