Skip to content

Instantly share code, notes, and snippets.

@sixthgear
Forked from anonymous/reverse.c
Created August 4, 2011 03:47
Show Gist options
  • Save sixthgear/1124462 to your computer and use it in GitHub Desktop.
Save sixthgear/1124462 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int l, char **a) {
for(int i = 0; i < l/2; a[++i] = (((int)a[i]+(int)a[l-i])-(int)(a[l-i]=a[i])) );
for(int i = 1; i < l; ++i)
printf("%s ", a[i]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment