title: Does casting types depend on big/little endian?
body: <p>Consider this little piece of code:</p>
  
  <pre><code>int a=0x10000001;
  char b;
  
  b=(char)a;
  printf("%#x \n",b);
  </code></pre>
  
  <p>On my PC it prints 0x01 and I am not suprised. 
  How would it work on BIG ENDIAN machine? I expect that it would print <code>0x10000001</code>. Am I right? </p>
  
  <p>I browsed books and web but I didn't find clear information how the casting operation really deals with the memory.     </p>