Skip to content

Instantly share code, notes, and snippets.

@DerekV
Created October 4, 2012 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerekV/3831430 to your computer and use it in GitHub Desktop.
Save DerekV/3831430 to your computer and use it in GitHub Desktop.
don't code like this
// don't code like this
#include <stdio.h>
#include <cstring>
int main()
{
static char *c;
if(!c) *(c=&(*(c=new char[27]+26)='\0')-1)='Z';
*c=='A'?printf("%s\n",c):(*c=*(c--)-1,main());
}
az: az.cpp
run: az
./az
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment