title: Is there any format specifier of bool in C?
body: <p>In the following example, I'm trying to scan the value of <code>boolean</code> type of variable. When I compile in GCC, I get following warning,</p>
  
  <pre><code>warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘_Bool *’ [-Wformat=]
    scanf("%d",&amp;b);
  </code></pre>
  
  <p><strong>code:</strong></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdbool.h&gt;
  
  int main()
  {
          bool b;
  
          scanf("%d",&amp;b);
          printf("%d\n",b);
  }
  </code></pre>
  
  <p>My question is, Is there any format specifier of bool in <code>C</code>?</p>