title: Getting multiple strings as inputs
body: <p>The Question is to take three names as input and check whether the 4th input is the first letter of one of those three names. 
  *It needs to be only of alpha type and no other.</p>
  
  <p><strong>Sample Input:</strong></p>
  
  <pre><code>@ON SNOW
  ARYA STARK
  HODOR
  @ 
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>NO
  </code></pre>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;ctype.h&gt;
  int main(){
      char s1[100],s2[100],s3[100];
      char ch[1];
      scanf("%[^\n]s",s1);
      scanf("%[^\n]s",s2);
      scanf("%[^\n]s",s3);
      scanf("%s",ch);
      if(isalpha(ch[0]) &amp;&amp; (s1[0]==ch[0] || s2[0]==ch[0] || s3[0]==ch[0]))
          printf("yes");
      else
          printf("no");
  }
  </code></pre>
  
  <p>As I figured out that <code>gets()</code> no longer works, I tried <code>scanf("%s",s1);</code>.
  But since it does not store the calude after the whitespace <code>" "</code>, I tried this <code>scanf("%[^\n]s",s1);</code>. But the scanning stops at the first name itself.</p>
  
  <pre><code>John Player
  NO
  </code></pre>
  
  <p>What is the way to store multiple strings in a char array without using loops and only using branching??</p>