title: C++ char array addition
body: <p>So I recently started learning C++, been watching a lot of tutorials and stumbled upon a tricky question. I want to enter a max number n and enter two numbers stored in a char array. Then I would want to pass them into my add function to do simple addition. It would always return a letter though. I know it has to do with the char ASCII, but is there any way besides using strings to accomplish this? </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  void add(char m1[], char m2[], int n);
  
  int main()
  {
  int n = 0;
  cin &gt;&gt; n;
  
  const char CAPACITY = 100;
  char m1[CAPACITY] = {0};
  char m2[CAPACITY] = {0};
  
  for(int i = 0; i &lt; n; i++)
  {
      cin &gt;&gt; m1[i];
  
  }
  for(int i = 0; i &lt; n; i++)
  {
      cin &gt;&gt; m2[i];
  
  }
  add(m1, m2, n);
  
  
  }
  
  void add(char m1[], char m2[], int n)
  {
  char sum[100] = {0};
  for(int i = 0; i &lt; n; i++)
  {
      sum[i] = m1[i] + m2[i];
  }
  
  for(int i = 0; i &lt; n; i++)
      cout &lt;&lt; sum[i];
  }
  </code></pre>