Little and Big Endian Mystery |
#include <bits/stdc++.h> NEW_LINE using namespace std ; int main ( ) { unsigned int i = 1 ; char * c = ( char * ) & i ; if ( * c ) cout << " Little ▁ endian " ; else cout << " Big ▁ endian " ; return 0 ; }