title: How to print part of words in string by input using array in c?
body: <p>The C program below print the third until last character of 80 words strings</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
    char a[] = "computer";
    char start = 3;
    char length = 7;
  
    printf("%.*s\n", length, a + start);
  
    return 0;
  }
  </code></pre>
  
  <p>the output :</p>
  
  <pre><code>puter
  </code></pre>
  
  <p>how to write in c code for print "n" last character of string</p>
  
  <p>ex:</p>
  
  <ul>
  <li><p>string : "this computer"</p></li>
  <li><p>n inputed by scanf ex: 5</p></li>
  </ul>
  
  <p>it will print to console</p>
  
  <p>"puter" </p>