Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Endianness.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <stdlib.h>
- int _tmain(int argc, _TCHAR* argv[])
- {
- int n = 1;
- char* p;
- p = (char*)&n;
- printf_s("\n %c", *p);
- printf_s("\n %c", *(p + 1));
- printf_s("\n %c", *(p + 2));
- printf_s("\n %c", *(p + 3));
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement