title: Array address subtraction in C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/759663/pointer-arithmetic-in-c">Pointer Arithmetic In C</a>  </p>
  </blockquote>
  
  
  
  <p>Code:</p>
  
  <pre><code>int main() 
  { 
      int a[ ] ={0,1,2,3,4}; 
      char c[ ] = {'s','a','n','j','u'}; 
      printf("%d\n",&amp;a[3]-&amp;a[0]); 
      printf("%d\n",&amp;c[3]-&amp;c[0]); 
      return 0; 
  }
  </code></pre>
  
  <p>Why the output comes 3 3 for both, if we consider the difference in addresses they will be         different for both??</p>