title: Passing int using char pointer in C
body: <p>I'm trying to figure out how to pass an int using a char pointer. It fails once the int value is too large for the char. This is what I'm trying to figure out:</p>
  
  <pre><code>char *args[5];
  
  int i = 20;
  
  /*some other code/assignments*/
  
  args[2] = (char *)&amp;i;
  
  execv(path, args);
  </code></pre>
  
  <p>How would I do something like this if i was a bigger value, like 400? </p>
  
  <p>Thanks in advance.</p>