title: C - how to fix to work printf in this code?
body: <p>I'm C begginer.I'm making typing practice program for practice.
  In line 42,it doesn't work printf.I want print rand_n.
  I think it maybe array problem but i can't fix this code.
  can you help me?
  Thanks.Have a good day!</p>
  
  <pre><code>1 #include &lt;stdio.h&gt;
  2 #include &lt;time.h&gt;
  3 #include &lt;string.h&gt;
  4 #include "getch.h"
  5
  6 int main()
  7 {
  8     char se[5][6][100]={{"AND THEN THERE WERE NONE", ....
  27     .....    ," Young Lord L had surrendered to Cupid at last"}};
  28
  29
  30     char mysent;
  31     int accu=0,pro=0;
  32     int rand_n;
  33     double typing=0.0;
  34     srand(time(NULL));
  35     rand_n=rand()%1000;
  36     time_t start=0,end=0;
  37     typing = accu*60.00/(end-start);
  38
  39
  40     printf("&gt;&gt;  typing practice &lt;&lt;\n");
  41     printf("accuracy : %d%%  typing_pre_sec : %d\n",accu,typing);
  42     printf("%s\n",se[rand_n]);
  </code></pre>