title: Strange character after an array of characters
body: <p>I am a real beginner to C, but I am learning!</p>
  
  <p>I've stumbled upon this problem before and decided to ask what the reason for it is. And please explain your answers so I can learn.</p>
  
  <p>I have made a program which allows you to input 5 characters and then show the characters you wrote and also revert them, example: "asdfg" - "gfdsa".
  The weird thing is that a weird character is shown after the original characters that was inputted.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>char str[5];
  char outcome[] = "OOOOO";
  int i;
  int u;
  
  printf("Enter five characters\n");
  
  scanf("%s", str);
  
  for(i = 4, u = 0; i &gt;=0; u++, i--){
      outcome[i] = str[u];
  }
  
  printf("\nYou wrote: %s. The outcome is: %s.", str , outcome);
  
  
  return 0;
  </code></pre>
  
  <p>If I enter: "asdfg" it shows: "asdfg♣", why is that?</p>
  
  <p>Thank you for your time and please explain your answers :)</p>