title: Default of malloc'd bool value within struct in C?
body: <p>What is the value of this bool within a struct when we try to access it as n->myBool? I'm interested to know what the "default" value of the bool is after allocating memory for it but not assigning it a true of false value.</p>
  
  <pre><code>#include &lt;stdbool.h&gt;
  typedef struct node
  {
   bool myBool;
  } Node;
  
  void main()
  {
   Node* n = malloc(sizeof(Node));
   return;
  }
  </code></pre>
  
  <p>edit: corrected a typo in code (should be sizeof(Node) not sizeof(node)</p>