---
title: "bool"
type: concept
related: [Bool]
source: https://www.jemoka.com/posts/kbhbool/
confidence: high
status: active
---

bool does not belong in pure C.
#include &lt;stdio.h&gt; #include &lt;stdbool.h&gt; // you need to include this to get bools to work. int main(int argc, char *argv[]) { bool test = true; if (test) printf(&#34;its true\n&#34;) }
