SHARE
TWEET

long

a guest Mar 26th, 2020 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char const *argv[])
  4. {
  5.     long l; int i;
  6.     scanf("%ld", &l);
  7.     unsigned char* p = (unsigned char*)&l;
  8.  
  9.     for(i=0; i<8; i++){
  10.         printf("%x\n", p[i]);
  11.     }
  12.  
  13.     return 0;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top