title: Can you use scanf to test a valid input for _Bool type? Regarding C
body: <p>I have a question about this fragment of code I wrote in C:</p>
  
  <pre><code> printf("Do you own a microwave?Enter 1 for Yes and 0 for No\n");
      while((scanf("%d",&amp;microw))==0){
          printf("Please enter a valid number:\n");
      scanf("%d",&amp;microw);}
  </code></pre>
  
  <p>My compiler says the following: "format <code>%d</code> expects argument of type <code>int*</code> but argument 2 has type <code>_Bool*</code>". As far as I am informed, boolean was considered an int type so I am not sure why this warning is received. How else would I be able to test for this condition other than to set up another variable to test with <code>scanf</code>, and then assigning another variable of <code>_Bool</code> type to true or false? Any feedback is appreciated. I thank you all :).</p>