title: The program doesn't stop on scanf("%c", &ch) line, why?
body: <p>the program doesnt stop on scanf("%c", &amp;ch) line. why does it happens sombody can please explain this to me</p>
  
  <pre><code>#include&lt;stdlib.h&gt;
  #include&lt;stdio.h&gt;
  
  struct list {
     char val;
     struct list * next;
  };
  
  typedef struct list item;
  
  void main()
  {
      char ch;
      int num;
  
      printf("Enter [1] if you want to use linked list or [2] for realloc\n");  
      scanf("%d", &amp;num);
      if(num == 2)
      {
          scanf("%c", &amp;ch); 
          printf("%c", ch);
      }
  }
  </code></pre>