Skip to content

Instantly share code, notes, and snippets.

@mjard
Created August 4, 2011 02:36
Show Gist options
  • Save mjard/1124391 to your computer and use it in GitHub Desktop.
Save mjard/1124391 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int
main(int argc, char *argv[])
{
char c[]="wat is this, because this is a lie",*a=&c[0],*b=&c[0]+(sizeof c-1);
while(a<--b){*a=*a+*b;*b=*a-*b;*a=*a-*b;a++;}
printf("%s\n",c);
return 0;
}
/*
[mjard@jard ~]$ gcc -g -Wall -pedantic synx.c
[mjard@jard ~]$ ./a.out
eil a si siht esuaceb ,siht si taw
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment