title: How to check scanf two integers in c
body: <p>I have a problem, that I need to scan two integers in one line divided by a space, so the code looks something like this:</p>
  
  <pre><code>scanf("%d %d",&amp;integer1,&amp;integer2);
  </code></pre>
  
  <p>And in this code I need to check whether there were scanned two integers. Can someone help me? 
  Thank you in advance</p>