title: Filling an Array in C with 0
body: <p><a href="https://i.stack.imgur.com/HQXjb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HQXjb.png" alt="Array addition in C"></a></p>
  
  <p>Ive got a problem with this code, im trying to add up array1 with array2. </p>
  
  <p>I enter the numbers for array2 by Command line parameters. </p>
  
  <p>When i enter 10 numbers it is working but when i add less than 10 I get an Memory access error. </p>
  
  <p>My question is now: how do i fill up the missing array fields with the number 0? For example : I enter 9 numbers and the 10th field should be 0. </p>