title: I want to update my C code with ASCII code
body: <p>I have a C code that when i give a reverse  sentence to it , it convert my sentence to usual , but my problem is when i use writing signs like ? or ! etc, our program doesn't work true.</p>
  
  <p>Example input: oD uoy tnaw ot eunitnoc?</p>
  
  <p>output (we want): Do you want to continue?</p>
  
  <p>output it shows: Do you want to ?continue</p>
  
  <p>Can you help me  to solve this problem? I think i must use ASCII codes to solve it but i don't know how can i define them and solve this problem .</p>
  
  <p>here is my code :</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;ctype.h&gt;
  
  int main()
  {
     char sentence[100];
     int ch, i, j, k;
  
     for (i=0; i&lt;sizeof(sentence)-1; i++) 
     if ((sentence[i] = getchar()) == '\n') 
     break;
  
     sentence[i] = '\0';
  
     for (j = 0; j &lt;=i; j++)
     {
             if(sentence[j]==' ' || sentence[j]=='\0')
             {
                     for( k=j-1;sentence[k]!=' ' &amp;&amp; k&gt;=0;k--)
                     {
                         ch=sentence[k];
                         putchar(ch);
                     }
                     printf(" ");  
             }
  
     }
     return 0;
  }
  </code></pre>