title: Converting integer into array of digits
body: <p>I need to convert two integers into two arrays of digits, so for example 544 would become <code>arr[0] = 5, arr[1] = 4, arr[2] = 4</code>. </p>
  
  <p>I have found some algorithms doing this, but they create new array, and return this. I would have to allocate this memory for two arrays, so I wanna pass two integers by reference and do this on them directly.</p>
  
  <p>I guess I can do this, because these integers are in fact template types, so they should be changeable. That's why I added C++ tag here.</p>