Skip to content

Instantly share code, notes, and snippets.

@tjsingleton
Created June 19, 2012 21:54
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 tjsingleton/2956763 to your computer and use it in GitHub Desktop.
Save tjsingleton/2956763 to your computer and use it in GitHub Desktop.
test type conversion
#include <stdio.h>
int main() {
unsigned long dword;
char converted;
dword = 255L;
converted = (char) dword;
printf("value is: %lu\n", dword);
printf("value is: %lu\n", converted);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment