title: Little endian or Big endian
body: <pre><code>#include &lt;stdio.h&gt;
  
  union Endian
  {
      int i;
      char c[sizeof(int)];
  };
  
  int main(int argc, char *argv[]) 
  {
      union Endian e;
      e.i = 1;
      printf("%d \n",&amp;e.i);
      printf("%d,%d,\n",e.c[0],&amp;(e.c[0]));
      printf("%d,%d",e.c[sizeof(int)-1],&amp;(e.c[sizeof(int)-1]));
  
  
  }
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code>1567599464 
  1,1567599464,
  0,1567599467
  </code></pre>
  
  <p>LSB is stored in the lower address and MSB is stored in the higher address. Isn't this supposed to be big endian? But my system config shows it as a little endian architecture.</p>