Skip to content

Instantly share code, notes, and snippets.

@halfdan
Created May 27, 2011 20:46
Show Gist options
  • Save halfdan/996139 to your computer and use it in GitHub Desktop.
Save halfdan/996139 to your computer and use it in GitHub Desktop.
Bool in C99
#include <stdbool.h>
#include <stdio.h>
bool test = false;
int main(void) {
if(test) {
printf("Test is true");
}
else {
printf("Test is false");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment