title: Split a string(a word) to letters in C
body: <p>I need a string to split into its letters and save it in an array .I have no clue how to do this .Its possible in C++ but in C it seems like there is no way to do.</p>
  
  <p>Or if there is a way to take an input string(a word )and save it as separate letters in an array will be ideal .I have used below mentioned code to get the input </p>
  
  <pre><code>    #include &lt;stdio.h&gt;
      #include &lt;stdlib.h&gt;
      #include &lt;math.h&gt;
      #include&lt;string.h&gt;
      int(){
  char inputnumber;
          printf(  "Enter the number" ); 
  // the word is like --&gt; hellooo
           scanf("%s", &amp;inputnumber);
  int i=0;
  printf(inputnumber[i]);
      }
  </code></pre>
  
  <p>Update: this is solved ,I did not declare a pointer to the char here ,that's the part which is missing then we can read the word  letter by letter ,thanks all  </p>