Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created May 25, 2014 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wandernauta/86d070e3565cec8e7d02 to your computer and use it in GitHub Desktop.
Save wandernauta/86d070e3565cec8e7d02 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
int a = 'abcd';
int b = ((('a')<<24) | (('b')<<16) | (('c')<<8) | ('d'));
printf("%d == %d\n", a, b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment