title: How to add a char/int to an char array in C?
body: <p>How can I add '.' to the char Array := "Hello World" in C, so I get a char Array: "Hello World." The Question seems simple but I'm struggling.</p>
  
  <p>Tried the following:</p>
  
  <pre><code>char str[1024];
  char tmp = '.';
  
  strcat(str, tmp);
  </code></pre>
  
  <p>But it does not work. It shows me the error: "passing argument 2 of ‘strcat’ makes pointer from integer without a cast"
  I know that in C a char can be cast as int aswell. Do I have to convert the tmp to an char array aswell or is there a better solution?</p>