Skip to content

Instantly share code, notes, and snippets.

@lessandro
Created February 15, 2013 23:14
Show Gist options
  • Save lessandro/4964381 to your computer and use it in GitHub Desktop.
Save lessandro/4964381 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int f(int a, int b)
{
return (int)&((char*)a)[b];
}
int main()
{
printf("%d\n", f(1, 2));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment