title: How can we convert a string to int for very large integer values?
body: <p>I have used the function <code>atoi</code> to convert character strings to <code>int</code> and it's working fine but when I gave </p>
  
  <pre><code>num = atoi (argv[1]) ;
  
  // argv contain 4294967295 maximun value of 32 bit integer
  </code></pre>
  
  <p>it's giving me 2147483647 answer which is basically half of 4294967295</p>
  
  <p>i guess that its because of difference of bytes in <code>char</code> and <code>int</code>.
  Can any one explain whats happening to bits and bytes 
  and how to fix it or convert it to int</p>