Advertisement
Guest User

Little/Big

a guest
Nov 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. // Endianness.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <stdlib.h>
  6.  
  7.  
  8. int _tmain(int argc, _TCHAR* argv[])
  9. {
  10. int n = 1;
  11. char* p;
  12. p = (char*)&n;
  13. printf_s("\n %c", *p);
  14. printf_s("\n %c", *(p + 1));
  15. printf_s("\n %c", *(p + 2));
  16. printf_s("\n %c", *(p + 3));
  17. system("PAUSE");
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement