title: Reading "integer" size bytes from a char* array.
body: <p>I want to read <code>sizeof(int)</code> bytes from a <code>char*</code>  array.</p>
  
  <p>a) In what scenario's do we need to worry if endianness needs to be checked?</p>
  
  <p>b) How would you read the first 4 bytes either taking endianness into consideration or not.</p>
  
  <p><strong>EDIT :</strong> The <code>sizeof(int)</code> bytes that I have read needs to be compared with an integer value.</p>
  
  <p>What is the best approach to go about this problem</p>