title: Get a part of an integer in C
body: <p>I came from python and it was easy to get the middle digit of an integer, for example, from 897 I want the 9:</p>
  
  <pre><code>&gt;&gt;&gt; num = 897
  &gt;&gt;&gt; num2 = int(str(num)[1])
  &gt;&gt;&gt; num2
  9
  </code></pre>
  
  <p>But how i can do this on C? It's so difficult to convert into string...</p>