Skip to content

Instantly share code, notes, and snippets.

@alecbz
Created March 8, 2013 00:28
Show Gist options
  • Save alecbz/5113198 to your computer and use it in GitHub Desktop.
Save alecbz/5113198 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int a;
} foo_t;
int main() {
foo_t *a;
a = calloc(10, sizeof(foo_t));
++a++->a;
printf("%d\n", (-1)[a].a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment