title: C - bool data type in struct causes exceptions
body: <p>Simply put, I have the following code (simplified):</p>
  
  <pre><code>void Example()
  {
      struct AuctionVars auction;
      memset(&amp;auction, 0, sizeof(struct AuctionVars));
  }
  </code></pre>
  
  <p>And I have the following struct:</p>
  
  <pre><code>struct AuctionVars
  {
      float minBidIncrement;
      int numAuctionItems;
      float* auctionItemValues;
  };
  </code></pre>
  
  <p>When I change it to this:</p>
  
  <pre><code>struct AuctionVars
  {
      float minBidIncrement;
      int numAuctionItems;
      float* auctionItemValues;
      bool isAuctionClosed;
  };
  </code></pre>
  
  <p>I get a whole lot of errors everywhere my program references or uses an <code>AuctionVars</code> variable.  </p>
  
  <p>I have already found out that the Visual Studio compiler uses C89 and does not support declaring variables anywhere but at the beginning of code blocks, so is this another limitation of C99 where bool types are not supported in structs? Or am I making another one of my foolish mistakes?</p>