Skip to content

Instantly share code, notes, and snippets.

@pabloem
Last active December 17, 2015 20:19
Show Gist options
  • Save pabloem/5666735 to your computer and use it in GitHub Desktop.
Save pabloem/5666735 to your computer and use it in GitHub Desktop.
Sample code for endianness bug
void print_variable(char *variable)
{
printf("Variable is %d\n",*variable);
}
int main()
{
int variable = 1;
print_variable(&variable);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment